-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
73 lines (68 loc) · 1.86 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.8'
services:
app-front:
container_name: app-front
build: app-front/.
networks:
- web
ports:
- "8000:8000"
restart: on-failure
env_file: app-front/.env
environment:
APP_NAME: app-front
tty: true
stdin_open: true
volumes:
- "./Common:/app/Common"
- "./app-front:/app/app"
app-backend:
container_name: app-backend
build: app-backend/.
networks:
- web
ports:
- "8001:8000"
restart: on-failure
env_file: app-backend/.env
environment:
APP_NAME: app-backend
tty: true
stdin_open: true
volumes:
- "./Common:/app/Common"
- "./app-backend:/app/app"
database:
container_name: database
image: 'mysql:8.0'
volumes:
- ./mysql:/var/lib/mysql
networks:
- web
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: main
ports:
# To allow the host machine to access the ports below, modify the lines below.
# For example, to allow the host to connect to port 3306 on the container, you would change
# "3306" to "3306:3306". Where the first port is exposed to the host and the second is the container port.
# See https://docs.docker.com/compose/compose-file/compose-file-v3/#ports for more information.
- "3306:3306"
# You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!
# - ./docker/db/data:/var/lib/postgresql/data:rw
rabbitmq:
container_name: rabbitmq
image: rabbitmq:management
networks:
- web
ports:
- "15672:15672"
- "5672:5672"
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
networks:
web:
driver: bridge
volumes:
Common: