-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (49 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
54 lines (49 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '3.8'
services:
api:
image: dopolytech/dodle-api:latest
build:
context: ./api
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
- NODE_ENV=production
- MONGODB_URI=mongodb://admin:admin@dodle-database-1:27017
- MONGODB_DATABASE=dodle
- API_TOKEN=your_api_token_here
depends_on:
database:
condition: service_started
networks:
- app-network
frontend:
image: dodle-front:latest
build:
context: ./front
dockerfile: Dockerfile
ports:
- "80:80"
environment:
- API_URL=http://localhost:8080
depends_on:
- api
networks:
- app-network
database:
image: mongo:7
environment:
- MONGO_INITDB_DATABASE=dodle
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=admin
volumes:
- mongodb_data:/home/pierre-louis/temp/mongodb
networks:
- app-network
ports:
- "27017:27017"
networks:
app-network:
driver: bridge
volumes:
mongodb_data: