-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (68 loc) · 1.66 KB
/
docker-compose.yml
File metadata and controls
83 lines (68 loc) · 1.66 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '3.9'
services:
redis:
container_name: redis
image: redis:6.2.6-alpine
restart: always
ports:
- '6379:6379'
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
server:
container_name: server
build:
context: ./api/
target: dev
args:
- NODE_ENV=development
- PORT=8000
env_file:
- ./api/.env.development.local
ports:
- "8000:8000"
- "9229:9229"
- "9230:9230"
- "9100:9100"
volumes:
- ./api/:/usr/app
- /usr/app/node_modules
restart: 'always'
depends_on:
mongo:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
disable: true
mongo:
container_name: mongo
image: mongo:4.4
command: mongod --serviceExecutor adaptive
ports:
- 27018:27017
logging:
driver: "none"
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
- MONGO_INITDB_DATABASE=${MONGO_INITDB_DATABASE}
- MONGO_USERNAME=${MONGO_USERNAME}
- MONGO_PASSWORD=${MONGO_PASSWORD}
volumes:
- ./scripts/mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh/:ro
healthcheck:
test: "[ `echo 'db.runCommand(\"ping\").ok' | mongo localhost/ --quiet` ] && echo 0 || echo 1"
proxy:
container_name: proxy
ports:
- '80:80'
build:
context: ./nginx/
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
restart: 'always'
depends_on:
- server
# - client
# volumes:
# notused: