forked from OurMenu/OurMenu-BE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (66 loc) · 1.8 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3'
services:
redis:
image: redis
ports:
- "8082:6379"
networks:
- test_network
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
command: redis-server --requirepass ${REDIS_PASSWORD}
database:
container_name: mysql_db
image: mysql/mysql-server:5.7
restart: unless-stopped
environment:
MYSQL_DATABASE: users_db
MYSQL_ROOT_HOST: '%'
MYSQL_ROOT_PASSWORD: ${SPRING_DATASOURCE_PASSWORD}
TZ: 'Asia/Seoul'
ports:
- "3307:3306"
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/config:/etc/mysql/conf.d
- ./mysql/init:/docker-entrypoint-initdb.d
command:
- "mysqld"
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
networks:
- test_network
application:
container_name: docker-compose-test
restart: on-failure
image: ji0513ji/ourmenu:latest
# build:
# context: ./
# dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
#docker compose convert
SPRING_DATASOURCE_URL: ${SPRING_DATASOURCE_URL}
SPRING_DATASOURCE_USERNAME: ${SPRING_DATASOURCE_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${SPRING_DATASOURCE_PASSWORD}
SPRING_DATA_MONGODB_URL: ${MONGODB_URL}
SPRING_SWAGGER_SERVER_URL: https://bluesparrow.shop
#auth
SPRING_MAIL_USERNAME: ${GMAIL_ADDRESS}
SPRING_MAIL_PASSWORD: ${GMAIL_PASSWORD}
SPRING_REDIS_HOST: ${REDIS_HOST}
REDIS_PASSWORD: ${REDIS_PASSWORD}
JWT_SECRET_KEY: ${JWT_SECRET_KEY}
#S3
BUCKET_NAME: ${BUCKET_NAME}
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
S3_SECRET_KEY: ${S3_SECRET_KEY}
AWS_REGION: ${AWS_REGION}
depends_on:
- database
- redis
networks:
- test_network
networks:
test_network: