-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (59 loc) · 1.38 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
version: "3.9"
services:
php:
restart: always
env_file:
- .env
build:
context: .
dockerfile: build/php/Dockerfile
networks:
intern:
ipv4_address: 10.0.2.3
volumes:
- ./logs:/usr/src/backend/logs
- ./ch/brueggli/backend/src/.:/usr/src/backend
- /usr/src/backend/vendor
nginx:
restart: always
build:
context: .
dockerfile: build/nginx/Dockerfile
ports:
- "80:80"
- "443:443"
networks:
intern:
ipv4_address: 10.0.2.2
volumes:
- ./logs:/var/log/nginx
- ./config/nginx:/etc/nginx
- ./ch/brueggli/ui/app/.:/usr/share/nginx/html
- /usr/share/nginx/html/node_modules
- /usr/share/nginx/html/.angular
mysql:
restart: always
build:
context: .
dockerfile: build/mariadb/Dockerfile
entrypoint: /usr/local/bin/custom_entrypoint.sh mysqld
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PW}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PW}"
MYSQL_DB: "${MYSQL_DB_NAME}"
networks:
intern:
ipv4_address: 10.0.2.4
volumes:
- ./logs:/var/log/mysql
- ./data:/var/lib/mysql
- ./config/mariadb/my.cnf:/etc/mysql/my.cnf
networks:
intern:
name: "Internal network"
external: false
ipam:
driver: default
config:
- subnet: "10.0.2.0/24"