-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.3 KB
/
docker-compose.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'
services:
api-server:
container_name: api-server
depends_on:
- db
- redis
image: ${NCP_CONTAINER_REGISTRY_API}/goalpanzi-api
ports:
- "8080:8080"
environment:
DB_HOSTNAME: ${DB_HOSTNAME}
DB_PORT: ${DB_PORT}
DB_DATABASE: ${DB_DATABASE}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
OAUTH_APPLE_CLIENT_ID: ${OAUTH_APPLE_CLIENT_ID}
JWT_SECRET: ${JWT_SECRET}
REDIS_HOST: ${REDIS_HOST}
OBJECT_STORAGE_BUCKET_NAME: ${OBJECT_STORAGE_BUCKET_NAME}
OBJECT_STORAGE_ACCESS_KEY_ID: ${OBJECT_STORAGE_ACCESS_KEY_ID}
OBJECT_STORAGE_SECRET_KEY: ${OBJECT_STORAGE_SECRET_KEY}
ENCODED_FIREBASE_ADMIN_SDK: ${ENCODED_FIREBASE_ADMIN_SDK}
SLACK_WEBHOOK_URI: ${SLACK_WEBHOOK_URI}
restart: always
volumes:
- ./logs:/logs
db:
container_name: db
image: mysql:8.0
platform: linux/amd64
volumes:
- ./db/data:/var/lib/mysql
environment:
MYSQL_ROOT_HOST: '%'
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
ports:
- ${DB_PORT}:${DB_PORT}
redis:
container_name: redis
image: redis:latest
ports:
- 6379:6379
volumes:
- ./redis/data:/data