-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
48 lines (48 loc) · 1 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
version: '3.7'
services:
database:
build: ./docker-misc/postgres/
restart: always
volumes:
- postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=db #db for webapp
- RUNNER_DB=runner_db #db for runner
ports:
- '5432:5432' #meant for script to add/update challs
nginx:
container_name: nginx
hostname: nginx
build: ./docker-misc/nginx/
restart: always
ports:
- "80:80"
- "443:443"
links:
- "webapp"
webapp:
build:
context: ./
dockerfile: ./Dockerfile.prod
restart: always
volumes:
- /app/node_modules
depends_on:
- "runner"
links:
- "database"
- "runner"
runner:
container_name: runner
build: ./runner
restart: always
depends_on:
- "database"
links:
- "database"
ports:
- '10000:10000' #meant for script at portainer within VPC to communicate.
volumes:
postgres: