-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
56 lines (50 loc) · 1.02 KB
/
docker-compose.yaml
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: "2"
# You might want to edit the folder name for the oTree
# installation that you want to include into the container.
# Also, you can change the port that oTree is listening
# to on the host.
# See the file 'config.env' for other configuration options.
services:
otree:
build:
context: .
args:
OTREE_APP_FOLDER: app
env_file:
- config.env
- secrets.env
ports:
- 9090:80
volumes:
- "otree-resetdb:/opt/init"
logging:
options:
max-size: "10m"
max-file: "3"
restart: always
networks:
- db-net
database:
image: postgres:9.5
env_file:
- config.env
- secrets.env
environment:
PG_DATA: /var/lib/postgresql/data/pgdata
volumes:
- "database:/var/lib/postgresql/data"
logging:
options:
max-size: "10m"
max-file: "3"
restart: always
tmpfs:
- "/tmp"
- "/run"
networks:
db-net:
volumes:
database:
otree-resetdb:
networks:
db-net: