-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
86 lines (82 loc) · 2.73 KB
/
docker-compose-dev.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
services:
back:
build:
context: .
dockerfile: Dockerfile
restart: always
ports:
- 8080:8080
environment:
- TZ=Asia/Seoul
- SPRING_PROFILES_ACTIVE=dev
- SPRING_DATASOURCE_URL=jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${DB_NAME}?useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true&tinyInt1isBit=false
- SPRING_DATASOURCE_USERNAME=${MYSQL_USERNAME}
- SPRING_DATASOURCE_PASSWORD=${MYSQL_PASSWORD}
- CLOUD_AWS_S3_BUCKET=${S3_BUCKET}
- CLOUD_AWS_S3_SIGNATURE_VERSION=AWS4-HMAC-SHA256
- CLOUD_AWS_CREDENTIALS_ACCESS_KEY=${AWS_ACCESS_KEY}
- CLOUD_AWS_CREDENTIALS_SECRET_KEY=${AWS_SECRET_KEY}
- CLOUD_AWS_REGION_STATIC=${AWS_REGION}
- CLOUD_AWS_REGION_AUTO=false
- CLOUD_AWS_STACK_AUTO=false
- JWT_ACCESS_TOKEN_SECRET=${JWT_ACCESS_TOKEN_SECRET}
- JWT_REFRESH_TOKEN_SECRET=${JWT_REFRESH_TOKEN_SECRET}
- JWT_ACCESS_TOKEN_EXPIRATION_TIME=${JWT_ACCESS_TOKEN_EXPIRATION_TIME}
- JWT_REFRESH_TOKEN_EXPIRATION_TIME=${JWT_REFRESH_TOKEN_EXPIRATION_TIME}
- JWT_ISSUER=${JWT_ISSUER}
- GOOGLE_LOGIN_CLIENT_ID=${GOOGLE_LOGIN_CLIENT_ID}
- GOOGLE_LOGIN_CLIENT_SECRET=${GOOGLE_LOGIN_CLIENT_SECRET}
- GOOGLE_LOGIN_REDIRECT_URI=${GOOGLE_LOGIN_REDIRECT_URI}
- KAKAO_LOGIN_CLIENT_ID=${KAKAO_LOGIN_CLIENT_ID}
- KAKAO_LOGIN_CLIENT_SECRET=${KAKAO_LOGIN_CLIENT_SECRET}
- KAKAO_LOGIN_REDIRECT_URI=${KAKAO_LOGIN_REDIRECT_URI}
- API_SERVER_URL=${API_SERVER_URL}
- SENTRY_DSN=${SENTRY_DSN}
depends_on:
- mysql
networks:
- bbogak
nginx:
image: nginx:latest
container_name: nginx
volumes:
- /etc/nginx/:/etc/nginx/
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
ports:
- "80:80"
- "443:443"
depends_on:
- back
networks:
- bbogak
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
certbot:
container_name: certbot
image: certbot/certbot
restart: unless-stopped
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
networks:
- bbogak
mysql:
image: mysql:8.0
container_name: bbo-gak-mysql-dev
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
networks:
- bbogak
volumes:
mysql_data:
networks:
bbogak:
driver: bridge