forked from DynCodingForKids/rgserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (45 loc) · 972 Bytes
/
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
version: '3'
services:
db:
image: postgres:9.4
environment:
- POSTGRES_USER=robot
restart: always
volumes:
- ./sql/schema.sql:/docker-entrypoint-initdb.d/schema.sql
- dbdata:/var/lib/postgresql/data
matchmaker:
build: matchmaker
depends_on:
- db
restart: always
volumes:
- ./matchlog:/matchlog
- ./matchmaker:/usr/src/app
webapp:
build: webapp
restart: always
volumes:
- ./webapp:/usr/src/app
server:
image: nginx:1.9
depends_on:
- webapp
ports:
- '8000:80'
restart: always
volumes:
- ./matchlog:/matchlog
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./static:/static
run:
image: postgres:9.4
command: One-off runner for rgserver
entrypoint: /bin/echo
volumes:
- ./dbbackups:/dbbackups
- ./matchlog:/matchlog
- ./sql:/sql
- dbdata:/var/lib/postgresql/data
volumes:
dbdata: