-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (56 loc) · 1.35 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
52
53
54
55
56
version: '3.3'
services:
client:
container_name: eop09-client
build:
context: .
dockerfile: client/cmd/docker/Dockerfile
volumes:
- eop09-client-tmp:/var/log/app
ports:
- "8080:8080"
environment:
- APP_ENV=prod
- APP_PORT=8080
- APP_RPC=server:8080
healthcheck:
test: curl -f http://localhost:8080/healthcheck || exit 1
interval: 30s
timeout: 10s
retries: 3
depends_on:
- server
server:
container_name: eop09-server
build:
context: .
dockerfile: server/cmd/docker/Dockerfile
volumes:
- eop09-server-tmp:/var/log/app
environment:
- APP_ENV=prod
- APP_PORT=8080
- APP_DSN=mongodb://admin:Masa1818@db:27017/?authSource=admin
depends_on:
- db
db:
image: "mongo:4.4.8"
container_name: eop09-db
volumes:
- eop09-mongo-db:/data/db
- eop90-mongo-config:/data/config
command: --serviceExecutor adaptive --wiredTigerCacheSizeGB 1
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: Masa1818
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo localhost:27017/test --quiet
interval: 30s
timeout: 10s
retries: 3
volumes:
eop09-mongo-db:
eop90-mongo-config:
eop09-server-tmp:
eop09-client-tmp: