-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-stg.yml
71 lines (66 loc) · 2.17 KB
/
docker-compose-stg.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
version: "3.8"
services:
app:
image: ghcr.io/sohosai/sos24-server:stg
restart: unless-stopped
environment:
- HOST=0.0.0.0
- PORT=${PORT}
- POSTGRES_DB_URL=${POSTGRES_DB_URL}
- FIREBASE_PROJECT_ID=${FIREBASE_PROJECT_ID}
- FIREBASE_SERVICE_ACCOUNT_KEY=${FIREBASE_SERVICE_ACCOUNT_KEY}
- PROJECT_APPLICATION_START_AT=${PROJECT_APPLICATION_START_AT}
- PROJECT_APPLICATION_END_AT=${PROJECT_APPLICATION_END_AT}
- REQUIRE_EMAIL_VERIFICATION=${REQUIRE_EMAIL_VERIFICATION}
- MONGO_DB_URL=${MONGO_DB_URL}
- MONGO_DB=${MONGO_DB}
- S3_ENDPOINT=${S3_ENDPOINT}
- S3_REGION=${S3_REGION}
- S3_BUCKET=${S3_BUCKET}
- S3_ACCESS_KEY_ID=${S3_ACCESS_KEY_ID}
- S3_SECRET_ACCESS_KEY=${S3_SECRET_ACCESS_KEY}
- SEND_GRID_API_KEY=${SEND_GRID_API_KEY}
- EMAIL_SENDER_ADDRESS=${EMAIL_SENDER_ADDRESS}
- EMAIL_REPLY_TO_ADDRESS=${EMAIL_REPLY_TO_ADDRESS}
- APP_URL=${APP_URL}
- SLACK_WEBHOOK_URL=${SLACK_WEBHOOK_URL}
labels:
traefik.enable: "true"
traefik.docker.network: "portainer-traefik"
traefik.http.services.sos24-server-stg.loadbalancer.server.port: ${PORT}
traefik.http.routers.sos24-server-stg.rule: Host(`sos24-api-stg.playground.sohosai.com`)
traefik.http.routers.sos24-server-stg.entrypoints: websecure
traefik.http.routers.sos24-server-stg.tls.certresolver: leresolver
networks:
- portainer-traefik
- sos24-server-stg
postgres:
image: postgres:14.13
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks:
- sos24-server-stg
mongo:
image: mongo
restart: always
volumes:
- mongodb-data:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
networks:
- sos24-server-stg
volumes:
postgres-data:
mongodb-data:
networks:
portainer-traefik:
name: portainer-traefik
external: true
sos24-server-stg:
name: sos24-server-stg
internal: true