-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker_compose_local.yml
91 lines (84 loc) · 1.97 KB
/
docker_compose_local.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: '3'
volumes:
sportyspots_postgres_data_local: {}
sportyspots_postgres_backup_local: {}
services:
django: &django
container_name: sportyspots_django
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: sportyspots-django:latest
depends_on:
- redis
- mailhog
- postgres
volumes:
- .:/app
env_file:
- ./.env
ports:
- "8000:8000"
restart: unless-stopped
command: /start.sh
# environment:
# - POSTGRES_USER=seedorf
# - USE_DOCKER=yes
# args:
# - GIT_COMMIT
# extra_hosts:
# - "somehost:162.242.195.82"
# - "otherhost:50.31.209.229"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost"]
# interval: 1m30s
# timeout: 10s
# retries: 3
# logging:
# driver: "json-file"
# options:
# max-size: "200k"
# max-file: "10"
celeryworker:
# https://github.com/docker/compose/issues/3220
<<: *django
container_name: sportyspots_celeryworker
image: sportyspots-celeryworker:latest
depends_on:
- redis
- mailhog
- postgres
ports: []
command: /start-celeryworker.sh
celerybeat:
# https://github.com/docker/compose/issues/3220
<<: *django
container_name: sportyspots_celerybeat
image: sportyspots-celerybeat:latest
depends_on:
- redis
- mailhog
- postgres
ports: []
command: /start-celerybeat.sh
mailhog:
container_name: sportyspots_mailhog
image: mailhog/mailhog:v1.0.0
ports:
- "8025:8025"
- "1025:1025"
redis:
container_name: sportyspots_redis
image: redis:4.0-alpine
postgres:
container_name: sportyspots_postgres
build:
context: .
dockerfile: ./compose/local/postgres/Dockerfile
volumes:
- sportyspots_postgres_data_local:/var/lib/postgresql/data
- sportyspots_postgres_backup_local:/backups
env_file:
- ./.env
ports:
- "5432:5432"