-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (57 loc) · 1.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
version: '3'
services:
database:
container_name: webserver-db
image: mariadb:11.2
networks:
devserver:
ipv4_address: 172.158.0.98
volumes:
- ./databases:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}" #set this via your env variable
MARIADB_AUTO_UPGRADE: true
ports:
- 3306:3306
adminer:
container_name: webserver-adminer
image: adminer:standalone
networks:
devserver:
ipv4_address: 172.158.0.100
ports:
- 8888:8080
depends_on:
- database
web:
container_name: webserver-web
image: ilateral/php:7.4-apache-buster
working_dir: /var/www
restart: always
networks:
devserver:
ipv4_address: 172.158.0.99
build:
context: ./build/web
args:
USER_ID: ${WWW_USER_ID:-0}
GROUP_ID: ${WWW_GROUP_ID:-0}
ports:
- 80:80
- 443:443
volumes:
- ./sites:/var/www/html
- ./files:/home/www-data/files
- ~/.ssh:/home/www-data/.ssh
depends_on:
- database
links:
- database
networks:
devserver:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.158.0.0/16