-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·59 lines (56 loc) · 1.38 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
version: '3.3'
# Creating application network
networks:
app-network:
driver: bridge
volumes:
redisdata:
driver: local
services:
php:
build: ./docker/php/
container_name: user-service-api
volumes:
- .:/var/www/html
- ./docker/php/custom.ini:/usr/local/etc/php/conf.d/custom.ini
networks:
- app-network
#Nginx service
nginx:
image: nginx:latest
ports:
- 8888:80
# - "4431:443"
volumes:
- .:/var/www/html
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
volumes_from:
- php
networks:
- app-network
#MySQL Service
db:
image: mysql:8.0.29
container_name: user-service-db
restart: always
ports:
- "3307:3306"
environment:
- "MYSQL_ROOT_PASSWORD=common404"
- "MYSQL_DATABASE=app_user"
volumes:
- ${BACKUP_DATA_PATH}/mysql4:/var/lib/mysql
networks:
- app-network
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: user_service_phpmyadmin
ports:
- 8801:80
environment:
PMA_HOST: db
UPLOAD_LIMIT: 1000M
depends_on:
- db
networks:
- app-network