-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
46 lines (40 loc) · 811 Bytes
/
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
version: "3.9"
services:
apache:
build:
context: ./backend
container_name: php-apache
restart: always
ports:
- '80:80'
volumes:
- ./backend:/var/www/html
networks:
net:
ipv4_address: ${APACHE_IPV4_ADDRESS}
db:
image: mariadb:10.3
container_name: db
env_file: .env
volumes:
- db-data:/var/lib/mysql
ports:
- ${DB_PORT}:3306
environment:
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
networks:
net:
ipv4_address: ${DB_IPV4_ADDRESS}
restart: unless-stopped
volumes:
db-data:
driver: local
networks:
net:
name: net
driver: bridge
ipam:
config:
- subnet: ${DOCKER_NETWORK_INTERVAL_SUBNET}