-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.production.yml
51 lines (49 loc) · 1.41 KB
/
docker-compose.production.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
version: '3.8'
networks:
traefik:
external: true
services:
strapi:
image: '${IMAGE_NAME}-strapi'
environment:
DB_HOST: ${DB_HOST}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: ${DB_NAME}
STRAPI_HOST: '0.0.0.0'
STRAPI_PORT: '1337'
STRAPI_APP_KEYS: ${STRAPI_APP_KEYS}
API_TOKEN_SALT: ${API_TOKEN_SALT}
JWT_SECRET: ${JWT_SECRET}
STRAPI_URL: ${STRAPI_URL}
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT}
SMTP_USERNAME: ${SMTP_USERNAME}
SMTP_PASSWORD: ${SMTP_PASSWORD}
WIKI_URL: ${WIKI_URL}
WIKI_USERNAME: ${WIKI_USERNAME}
WIKI_PASSWORD: ${WIKI_PASSWORD}
NODE_ENV: production
networks:
- traefik
- default
restart: unless-stopped
volumes:
- /srv/nollning/uploads:/app/public/uploads
labels:
- 'traefik.http.routers.$COMPOSE_PROJECT_NAME-strapi.rule=Host(`admin.$DEPLOY_URL`)'
web:
image: '${IMAGE_NAME}-web'
environment:
NEXT_PUBLIC_STRAPI_URL: ${STRAPI_URL}
STRAPI_API_TOKEN: ${STRAPI_API_TOKEN}
GOOGLE_API_KEY: ${GOOGLE_API_KEY}
EBREV_URL: ${EBREV_URL}
EBREV_API_KEY: ${EBREV_API_KEY}
NODE_ENV: production
networks:
- traefik
- default
restart: unless-stopped
labels:
- 'traefik.http.routers.$COMPOSE_PROJECT_NAME-web.rule=HostRegexp(`$DEPLOY_URL`, `{subdomain:[\d]{4}}.$DEPLOY_URL`)'