-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-staging.yml
93 lines (82 loc) · 1.87 KB
/
docker-compose-staging.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
92
93
version: "2"
# Environment is similar to production
volumes:
media:
nginx-config:
celery-beat-store:
staging-db:
staging-redis:
services:
# Nginx web server is only for development environment. Disabled in production.
staging-redis:
env_file: env/staging.list
image: redis:3.2.5-alpine
volumes:
- staging-redis:/data
staging-db:
image: postgres:9.6.1
env_file: env/staging.list
volumes:
- staging-db:/var/lib/postgresql
upgrade:
image: tuomasairaksinen/serviceform:latest
user: root
env_file: env/staging.list
command: upgrade
links:
- staging-db:db
- staging-redis:redis
volumes:
- media:/code/media
- nginx-config:/nginx-config
- celery-beat-store:/celery-beat-store
celery:
image: tuomasairaksinen/serviceform:latest
command: celery
env_file: env/staging.list
links:
- staging-redis:redis
- staging-db:db
depends_on:
- upgrade
celery-beat:
image: tuomasairaksinen/serviceform:latest
command: celery-beat
env_file: env/staging.list
links:
- staging-db:db
- staging-redis:redis
volumes:
- celery-beat-store:/store
depends_on:
- upgrade
task-processor:
image: tuomasairaksinen/serviceform:latest
command: task-processor
env_file: env/staging.list
links:
- staging-db:db
- staging-redis:redis
depends_on:
- upgrade
send-emails:
command: send-emails
image: tuomasairaksinen/serviceform:latest
env_file: env/staging.list
links:
- staging-db:db
depends_on:
- upgrade
app:
image: tuomasairaksinen/serviceform:latest
env_file: env/staging.list
ports:
- "8080:8080"
command: app
links:
- staging-db:db
- staging-redis:redis
volumes:
- media:/code/media
depends_on:
- upgrade