-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (68 loc) · 1.48 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
version: '3.7'
services:
app:
build:
args:
PHP_VERSION: ${PHP_VERSION}
context: ./docker/php
dockerfile: app.dockerfile
image: api-challenge:1.0
container_name: api-challenge
networks:
api_net:
ipv4_address: 172.26.1.4
ports:
- 8741:80
volumes:
- ./docker/php/vhosts:/etc/apache2/sites-enabled
- ./:/var/www
restart: always
database:
build:
context: ./docker/mariadb
dockerfile: maria.dockerfile
args:
MARIADB_VERSION: ${MARIADB_VERSION}
volumes:
- data:/var/lib/mysql
environment:
- "MYSQL_USER=admin"
- "MYSQL_PASSWORD=3FdwNAdzAEFu"
- "MYSQL_ROOT_PASSWORD=wg2bAQhd36aJ"
container_name: db_general
command: mysqld --sql_mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
networks:
api_net:
ipv4_address: 172.26.1.2
aliases:
- db.server
ports:
- "3094:3306"
restart: always
phpmyadmin:
image: phpmyadmin/phpmyadmin
depends_on:
- database
links:
- database
ports:
- 8756:80
container_name: phpmyadmin_general
environment:
PMA_HOST: database
PMA_PORT: 3306
MYSQL_ROOT_PASSWORD: wg2bAQhd36aJ
UPLOAD_LIMIT: 30000000000
networks:
api_net:
ipv4_address: 172.26.1.3
restart: always
volumes:
data:
networks:
api_net:
name: api-net
ipam:
driver: default
config:
- subnet: 172.26.0.0/16