-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (75 loc) · 2.11 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
version: '3.6'
services:
lm1-vue2:
container_name: lm1-vue2
build:
context: ./vue2
dockerfile: Dockerfile
environment:
VIRTUAL_HOST: lm1.local
volumes:
- './vue2:/var/www:rw'
networks:
lm1-net:
ipv4_address: 172.71.3.10
lm1-symfony5:
container_name: lm1-symfony5
build:
context: ./symfony5
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
- lm1-pma
environment:
VIRTUAL_HOST: api.lm1.local
volumes:
- './symfony5:/var/www:rw'
networks:
lm1-net:
ipv4_address: 172.71.3.11
lm1-mysql:
container_name: lm1-mysql
image: 'mariadb:10.3.22-bionic'
restart: unless-stopped
ports:
- '3316:3306'
volumes:
- type: bind
source: ./db/mysql
target: /var/lib/mysql
- type: bind
source: ./db/docker-entrypoint-initdb.d
target: /docker-entrypoint-initdb.d
environment:
TZ: Europe/Riga
LANG: en_US.UTF-8
MYSQL_ROOT_PASSWORD: $MYSQL_PASSWORD
MYSQL_USER: lm1-user
MYSQL_PASSWORD: $MYSQL_PASSWORD
INIT_TOKUDB: 1
INIT_ROCKSDB: 0
networks:
lm1-net:
ipv4_address: 172.71.3.13
command: '--sql-mode= --server-id=1 --log-bin=mysql-bin --expire_logs_days=3'
lm1-pma:
container_name: lm1-pma
image: 'phpmyadmin/phpmyadmin'
restart: always
depends_on:
- lm1-mysql
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_PASSWORD
MYSQL_USER: lm1-user
MYSQL_PASSWORD: $MYSQL_PASSWORD
PMA_HOST: lm1-mysql
PMA_PORT: 3306
networks:
lm1-net:
ipv4_address: 172.71.3.14
networks:
lm1-net:
ipam:
driver: default
config:
- subnet: 172.71.0.0/16