-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (44 loc) · 907 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
46
47
48
49
50
version: '3'
services:
nginx:
container_name: nginx
restart: unless-stopped
image: nginx:stable
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./dinner_time/media:/app/dinner_time/media
depends_on:
- server
db:
container_name: database
restart: always
image: postgres:11.6-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
server:
container_name: api_server
restart: always
build: .
env_file:
- $ENV
expose:
- 8000
volumes:
- ./dinner_time/media:/app/dinner_time/media
command: scripts/docker-entrypoint.sh
depends_on:
- db
backups:
container_name: backup
restart: always
env_file:
- $ENV
build: .
depends_on:
- db
command: python scripts/backup_scripts/backup.py
volumes:
postgres_data: