-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (46 loc) · 899 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (46 loc) · 899 Bytes
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
version: '2'
services:
database:
restart: always
image: postgres:9.4
env_file: env
volumes:
- ./logs/db:/var/log/postgresql
- dbdata:/var/lib/postgresql/data
logging:
driver: json-file
options:
max-size: 50m
website:
restart: always
build: ./src
volumes:
- ./media:/code/media
- ./static:/code/static
- ./src:/code/src
depends_on:
- database
env_file: env
expose:
- "8000"
#entrypoint: /entrypoint.sh
logging:
driver: json-file
options:
max-size: 50m
proxy:
build: ./nginx
ports:
- "12230:80"
volumes:
- ./static:/code/static:ro
- ./media:/code/media:ro
- /etc/localtime:/etc/localtime:ro
links:
- website:website
logging:
driver: json-file
options:
max-size: 50m
volumes:
dbdata: