-
Notifications
You must be signed in to change notification settings - Fork 234
/
docker-compose.yml
51 lines (48 loc) · 1.09 KB
/
docker-compose.yml
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
services:
backend:
container_name: backend
build:
context: .
dockerfile: ./docker/Dockerfile
args:
- ENV_FILE=.env.local
image: namviek
env_file:
- .env.local
environment:
- REDIS_HOST=redis:6379
- MONGODB_URL=mongodb://mongodb:27017/namviek?replicaSet=rs0&authSource=admin&directConnection=true
- AWS_MINIO_ENDPOINT=http://localhost:9000
ports:
- '3333:3333'
command: /bin/sh -c "./docker/be-entrypoint.sh && yarn backend"
healthcheck:
test: curl --fail http://localhost:3333 || exit 1
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
depends_on:
- mongodb
- redis
networks:
- namviek-network
frontend:
container_name: frontend
image: namviek
env_file:
- .env.local
ports:
- '3000:3000'
command: /bin/sh -c "./docker/fe-entrypoint.sh && yarn prod:fe"
depends_on:
- backend
networks:
- namviek-network
volumes:
mongodb-data:
minio-data:
mongodb-config:
networks:
namviek-network:
driver: bridge