forked from nevercodealone/cms-symfony-sulu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.rancher.yml
116 lines (112 loc) · 3.24 KB
/
docker-compose.rancher.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
version: '2'
services:
db:
environment:
- MYSQL_DATABASE_FILE=/run/secrets/sulu_nca_database_name
- MYSQL_PASSWORD_FILE=/run/secrets/sulu_nca_database_pass
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/sulu_nca_database_root_pass
- MYSQL_USER_FILE=/run/secrets/sulu_nca_database_user
- MYSQL_INITDB_SKIP_TZINFO=true
image: mariadb
labels:
io.rancher.container.pull_image: always
restart: always
secrets:
- sulu_nca_database_name
- sulu_nca_database_pass
- sulu_nca_database_root_pass
- sulu_nca_database_user
volumes:
- sulu_db_data:/var/lib/mysql
- sulu_db_transfer:/docker-entrypoint-initdb.d
web:
depends_on:
- db
environment:
- APP_ENV_FILE=/run/secrets/sulu_nca_app_env
- APP_SECRET_FILE=/run/secrets/sulu_nca_app_secret
- DATABASE_URL_FILE=/run/secrets/sulu_nca_database_url
- DATABASE_HOST_FILE=/run/secrets/sulu_nca_database_host
- DATABASE_NAME_FILE=/run/secrets/sulu_nca_database_name
- DATABASE_PASS_FILE=/run/secrets/sulu_nca_database_pass
- DATABASE_USER_FILE=/run/secrets/sulu_nca_database_user
- MAIL_URL_FILE=/run/secrets/sulu_nca_mail_url
- SULU_ADMIN_EMAIL_FILE=/run/secrets/sulu_admin_email
- GOOGLE_API_KEY_FILE=/run/secrets/sulu_GOOGLE_API_KEY
- TWITTER_API_KEY_FILE=/run/secrets/sulu_nca_twitter_api_key
- TWITTER_API_SECRET=/run/secrets/sulu_nca_twitter_api_secret
- TWITTER_ACCESS_TOKEN_FILE=/run/secrets/sulu_nca_twitter_access_token
- TWITTER_ACCESS_SECRET=/run/secrets/sulu_nca_twitter_access_secret
image: $WEB_IMAGE
labels:
traefik.docker.network: proxy
traefik.enable: true
traefik.frontend.passHostHeader: true
traefik.frontend.rule: 'Host:$HTTP_URL'
traefik.frontend.entryPoints: http,https
traefik.port: 80
traefik.frontend.headers.SSLRedirect: true
restart: always
secrets:
- sulu_nca_app_env
- sulu_nca_app_secret
- sulu_nca_database_url
- sulu_nca_database_host
- sulu_nca_database_name
- sulu_nca_database_pass
- sulu_nca_database_user
- sulu_nca_mail_url
- sulu_admin_email
- sulu_GOOGLE_API_KEY
- sulu_nca_twitter_api_key
- sulu_nca_twitter_api_secret
- sulu_nca_twitter_access_token
- sulu_nca_twitter_access_secret
volumes:
- sulu_web_var:/var/www/html/var
- sulu_web_transfer:/var/www/transfer
volumes:
sulu_db_data:
driver: local
sulu_web_uploads:
driver: local
sulu_web_var:
driver: local
sulu_web_transfer:
driver: local
external: true
sulu_db_transfer:
driver: local
external: true
secrets:
sulu_nca_database_name:
external: true
sulu_nca_database_pass:
external: true
sulu_nca_database_root_pass:
external: true
sulu_nca_database_user:
external: true
sulu_nca_database_host:
external: true
sulu_nca_app_env:
external: true
sulu_nca_app_secret:
external: true
sulu_nca_database_url:
external: true
sulu_nca_mail_url:
external: true
sulu_admin_email:
external: true
sulu_nca_twitter_api_key:
external: true
sulu_nca_twitter_api_secret:
external: true
sulu_nca_twitter_access_token:
external: true
sulu_nca_twitter_access_secret:
external: true
GOOGLE_API_KEY:
external: true