-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
54 lines (54 loc) · 1.43 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
services:
initcloud_nginx:
image: nginx:1.21.5-alpine
ports:
- 80:80
volumes:
- ./volume/nginx.conf:/etc/nginx/nginx.conf
container_name: initcloud_nginx
depends_on:
- initcloud_scanner
restart: always
initcloud_db:
image: floodnut/initcloud_db
container_name: initcloud_db
volumes:
- ./volume/db/data:/var/lib/mariadb:rw
env_file:
- .env
environment:
TZ: Asia/Seoul
MARIADB_DATABASE: ${MARIADB_DATABASE}
MARIADB_USER: ${MARIADB_USER}
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
command: ['--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
ports:
- ${DB_PORT}:3306
restart: always
initcloud_parser:
container_name: initcloud_parser
image: floodnut/parser_api
volumes:
- ./volume/uploads:/app/uploads
ports:
- ${PARSER_PORT}:8000
env_file:
- .env
initcloud_scanner:
container_name: initcloud_scanner
image: floodnut/scanner_api_v2
volumes:
- ./volume/uploads:/app/uploads
ports:
- ${SCANNER_PORT}:8080
env_file:
- .env
environment:
SPRING_DATASOURCE_URL: jdbc:mariadb://initcloud_db:3306/initcloud
SPRING_DATASOURCE_USERNAME: ${MARIADB_USER}
SPRING_DATASOURCE_PASSWORD: ${MARIADB_PASSWORD}
restart: always
depends_on:
- initcloud_db
- initcloud_parser