-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
56 lines (50 loc) · 1.24 KB
/
docker-compose-dev.yml
File metadata and controls
56 lines (50 loc) · 1.24 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
version: '3.4'
services:
db:
image: mysql:${MYSQL_VERSION:-8.0}
container_name: nTask_db
restart: unless-stopped
env_file:
- .env
ports:
- "${DB_PORT:-3306}:3306"
volumes:
- ./db:/var/lib/mysql
manager:
image: ${MANAGER_IMAGE:-ntask_manager:latest}
build:
context: .
dockerfile: ./manager/Dockerfile
container_name: nTask_manager
restart: unless-stopped
env_file:
- .env
ports:
- "${MANAGER_HTTP_PORT:-8080}:8080"
- "${MANAGER_HTTPS_PORT:-8443}:8443"
depends_on:
- db
command: manager --swagger --verbose --debug
volumes:
- ./manager.conf:/config/manager.conf
- ./output/:/config/output/
- ./certs/:/config/certs/
worker:
image: ${WORKER_IMAGE:-ntask_worker:latest}
build:
context: .
dockerfile: ./worker/Dockerfile
restart: unless-stopped
env_file:
- .env
depends_on:
- manager
command: worker --verbose --debug
volumes:
- ./worker.conf:/config/worker.conf
- ./certs/:/config/certs/
# If you’re on Swarm, this will give you N replicas out of the box:
deploy:
replicas: ${WORKER_REPLICAS_DEV:-2}
restart_policy:
condition: any