-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (50 loc) · 1.02 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
version: "3.8"
services:
# Mysql database container
db:
image: mysql
container_name: promotions_engine_db
restart: always
volumes:
- db-data:/var/lib/mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
networks:
- promotions_engine
# phpmyadmin container
phpmyadmin:
image: phpmyadmin
container_name: promotions_engine_phpmyadmin
restart: always
depends_on:
- db
ports:
- 8080:80
environment:
PMA_HOST: db
networks:
- promotions_engine
# Symfony apache project container
www:
build: docker/php
container_name: promotions_engine_php
ports:
- "8742:80"
volumes:
- ./docker/php/vhosts:/etc/apache2/sites-enabled
- ./:/var/www
restart: always
networks:
- promotions_engine
redis:
image: redis:7.0.0
container_name: promotions_engine_redis
restart: always
ports:
- "6379:6379"
networks:
- promotions_engine
networks:
promotions_engine:
volumes:
db-data: