-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (76 loc) · 2.22 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
version: '3.6'
services:
ruu-vue3:
container_name: ruu-vue3
build:
context: ./vue3
dockerfile: Dockerfile
environment:
VIRTUAL_HOST: ruu.local
volumes:
- './vue3:/var/www:rw'
networks:
ruu-net:
ipv4_address: 172.60.2.10
ruu-laravel8:
container_name: ruu-laravel8
build:
context: ./laravel8
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
- ruu-pma
environment:
VIRTUAL_HOST: api.ruu.local
volumes:
- './laravel8:/var/www:rw'
networks:
ruu-net:
ipv4_address: 172.60.2.11
ruu-mysql:
container_name: ruu-mysql
# #4 Fix `No address associated with hostname` and avoid unexpected updates when using `latest`.
image: 'mariadb:10.6.4-focal'
restart: unless-stopped
ports:
- '3346: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_ROOT_PASSWORD
MYSQL_USER: ruu-user
MYSQL_PASSWORD: $MYSQL_PASSWORD
INIT_TOKUDB: 1
INIT_ROCKSDB: 0
networks:
ruu-net:
ipv4_address: 172.60.2.13
command: '--sql-mode= --server-id=1 --log-bin=mysql-bin --expire_logs_days=3'
ruu-pma:
container_name: ruu-pma
image: 'phpmyadmin/phpmyadmin'
restart: always
depends_on:
- ruu-mysql
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
MYSQL_USER: ruu-user
MYSQL_PASSWORD: $MYSQL_PASSWORD
PMA_HOST: ruu-mysql
PMA_PORT: 3306
networks:
ruu-net:
ipv4_address: 172.60.2.14
networks:
ruu-net:
ipam:
driver: default
config:
- subnet: 172.60.0.0/16