-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (49 loc) · 1.47 KB
/
docker-compose.yml
File metadata and controls
51 lines (49 loc) · 1.47 KB
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
name: epi
services:
apache:
build: ./docker/apache/
container_name: "epi_apache"
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro # Sync timezone between container and wsl
- ./htdocs:/var/www/html:ro # Folder with static assets
networks:
- epinet
ports:
- "80:80"
- "443:443"
depends_on:
- php
php:
build: ./docker/php/
container_name: "epi_php"
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro # Sync timezone between container and wsl
- ".:/var/www/html:rw" # Folder for epigraf app
- "./data:/var/www/data:rw" # Folder for epigraf data
- "./docker/php/app.php:/var/www/html/config/app.php:rw" # Epigraf settings
networks:
- epinet
depends_on:
- sql
environment:
MYSQL_ROOT_PASSWORD: "root"
sql:
image: mariadb:10.11.6
container_name: "epi_sql"
restart: unless-stopped
ports:
- "3306:3306"
volumes:
- "episqldata:/var/lib/mysql"
networks:
- epinet
environment:
MYSQL_ROOT_PASSWORD: "root"
command: --sql_mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION,STRICT_ALL_TABLES"
volumes:
episqldata:
networks:
epinet:
driver: bridge