-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
98 lines (89 loc) · 1.85 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: '3'
services:
app:
build:
context: ./app
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
- db
tty: true
ports:
- "9001:9000"
environment:
SERVICE_NAME: app
SERVICE_TAGS: dev
working_dir: /var/www
volumes:
- ./app:/var/www/
front:
image: node:12-alpine
container_name: front
restart: unless-stopped
ports:
- "3000:8080"
depends_on:
- app
tty: true
environment:
SERVICE_NAME: node
SERVICE_TAGS: dev
working_dir: /var/www
volumes:
- ./front:/var/www
webserver:
build:
context: ./nginx
dockerfile: Dockerfile
image: nginx:alpine
container_name: webserver
restart: unless-stopped
tty: true
ports:
- "4000:80"
- "4443:443"
volumes:
- ./app:/var/www/
- ./front/src/public:/var/www/front
- ./webserver/conf.d/:/etc/nginx/conf.d/
#MySQL Service
db:
image: mysql:8
restart: unless-stopped
tty: true
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: world_travel
MYSQL_ROOT_PASSWORD: "12345678"
MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- mysql_data:/var/lib/mysql/
rabbitmq:
image: rabbitmq:latest
restart: unless-stopped
tty: true
privileged: true
environment:
- RABBITMQ_DEFAULT_USER=rabbitmq
- RABBITMQ_DEFAULT_PASS=12345678
hostname: rabbitmq
depends_on:
- app
volumes:
- rabbitmq_data:/var/lib/rabbitmq
ports:
- "5672:5672"
- "15671:15671"
- "15672:15672"
phpmyadmin:
image: phpmyadmin:5.0.4
restart: unless-stopped
tty: true
ports:
- 8080:80
volumes:
rabbitmq_data: {}
mysql_data: {}