-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (67 loc) · 1.39 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
74
version: "3"
services:
ai: &python
container_name: AI
build:
context: ./AI
command: sh -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0:8000"
ports:
- 8000:8000
volumes:
- ./AI/:/AI/
networks:
- app-tier
depends_on:
- rabbitmq
- celery
- redis
rabbitmq:
image: rabbitmq
ports:
- "5672:5672"
networks:
- app-tier
celery:
<<: *python
container_name: celery
command: "celery -A model worker --loglevel=INFO"
ports: [ ]
depends_on:
- rabbitmq
redis:
image: redis
ports:
- "6379:6379"
networks:
- app-tier
db:
image: mariadb:10.10.2
container_name: mariaDB
ports:
- 3306:3306
volumes:
- ./db/conf.d:/etc/mysql/conf.d
- ./db/data:/var/lib/mysql
- ./db/initdb.d:/docker-entrypoint-initdb.d
env_file: .env
environment:
TZ: Asia/Seoul
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_ROOT_HOST: ${MYSQL_ROOT_HOST}
networks:
- app-tier
spring_boot:
container_name: spring_boot
image: ${SPRING_BOOT_IMAGE}
ports:
- "8080:8080"
depends_on:
- db
environment:
SPRING_DATASOURCE_URL: ${MYSQL_URL}
networks:
- app-tier
networks:
app-tier:
driver: bridge