-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
66 lines (65 loc) · 1.41 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
version: '2'
services:
elo_api:
container_name: elo_api
build:
context: docker/elo_api
volumes:
- $SOURCE_DIR/be:/usr/src/myapp
expose:
- 80
ports:
- 127.0.0.1:$ELO_API_PORT:80
working_dir: /usr/src/myapp
entrypoint: php
command: "-S 0.0.0.0:80 Api/index.php"
networks:
elonet:
ipv4_address: 172.16.11.2
elo_www:
container_name: elo_www
image: nginx
volumes:
- $SOURCE_DIR:/usr/share/nginx/html
- $SOURCE_DIR/docker/elo_www/site.conf:/etc/nginx/conf.d/site.conf
expose:
- 81
ports:
- 0.0.0.0:$ELO_WWW_PORT:81
networks:
elonet:
ipv4_address: 172.16.11.3
elo_db:
container_name: elo_db
image: mysql:5.7
ports:
- 127.0.0.1:$DB_PORT:3306
environment:
MYSQL_ROOT_PASSWORD: $DB_PASSWORD
volumes:
- $SOURCE_DIR/docker/elo_db:/docker-entrypoint-initdb.d
networks:
elonet:
ipv4_address: 172.16.11.4
elo_phpmyadmin:
container_name: elo_phpmyadmin
image: phpmyadmin/phpmyadmin
depends_on:
- elo_db
ports:
- 127.0.0.1:$DB_PHPMYADMIN_PORT:80
environment:
PMA_HOST: elo_db
PMA_USER: root
PMA_PASSWORD: $DB_PASSWORD
networks:
elonet:
ipv4_address: 172.16.11.5
networks:
elonet:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.11.0/28
gateway: 172.16.11.1