-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (67 loc) · 1.45 KB
/
Copy pathdocker-compose.yml
File metadata and controls
74 lines (67 loc) · 1.45 KB
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.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: smart-booking-app
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
networks:
- smart-booking-network
depends_on:
- mysql
- redis
nginx:
image: nginx:alpine
container_name: smart-booking-nginx
restart: unless-stopped
ports:
- "8080:80"
volumes:
- ./:/var/www
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
- smart-booking-network
mysql:
image: mysql:8.0
container_name: smart-booking-mysql
restart: unless-stopped
environment:
MYSQL_DATABASE: smart_booking
MYSQL_ROOT_PASSWORD: root
MYSQL_PASSWORD: secret
MYSQL_USER: smart_booking
volumes:
- mysql_data:/var/lib/mysql
ports:
- "3306:3306"
networks:
- smart-booking-network
redis:
image: redis:7-alpine
container_name: smart-booking-redis
restart: unless-stopped
ports:
- "6379:6379"
networks:
- smart-booking-network
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: smart-booking-phpmyadmin
restart: unless-stopped
ports:
- "8081:80"
environment:
PMA_HOST: mysql
MYSQL_ROOT_PASSWORD: root
networks:
- smart-booking-network
networks:
smart-booking-network:
driver: bridge
volumes:
mysql_data:
driver: local