-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (82 loc) · 1.88 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
version: "3.9"
services:
flashbox_app:
container_name: flashbox_app
build:
context: .
dockerfile: ./docker/php/Dockerfile.dev
restart: always
volumes:
- .:/usr/src/app
# - ./public:/usr/src/app/public
depends_on:
- flashbox_db
- flashbox_redis
networks:
- flashbox_network
extra_hosts:
- "host.docker.internal:host-gateway"
flashbox_nginx:
container_name: flashbox_nginx
build:
context: .
dockerfile: ./docker/nginx/Dockerfile.dev
restart: always
volumes:
- ./public:/usr/src/app/public
ports:
- "8010:80"
depends_on:
- flashbox_app
environment:
NGINX_FPM_HOST: flashbox_app
networks:
- flashbox_network
extra_hosts:
- "host.docker.internal:host-gateway"
flashbox_db:
container_name: flashbox_db
image: mariadb:10.6
restart: always
volumes:
- ./storage/db-data:/var/lib/mysql
environment:
MYSQL_DATABASE: flashbox
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: root
MYSQL_PASSWORD: root
networks:
- flashbox_network
flashbox_phpmyadmin:
container_name: flashbox_phpmyadmin
image: phpmyadmin
restart: always
environment:
# PMA_ARBITRARY: 1
PMA_HOST: flashbox_db
PMA_USER: root
PMA_PASSWORD: root
MYSQL_ROOT_PASSWORD: root
MYSQL_PASSWORD: root
depends_on:
- flashbox_db
networks:
- flashbox_network
flashbox_redis:
container_name: flashbox_redis
image: redis:latest
networks:
- flashbox_network
flashbox_phpredisadmin:
container_name: flashbox_phpredisadmin
image: erikdubbelboer/phpredisadmin
restart: always
environment:
REDIS_1_HOST: flashbox_redis
depends_on:
- flashbox_redis
networks:
- flashbox_network
networks:
flashbox_network:
driver: bridge