-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
49 lines (45 loc) · 1.11 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
version: "3.5"
# All parameters used are in .env file
services:
parkplus-backend:
image: mattiaeffendi/parkplus:test
container_name: parkplus-backend
environment:
- XDEBUG_MODE=${XDEBUG_MODE}
user: "www-data:www-data"
volumes:
# Code
- .:/var/www/html:cached
# container /tmp folder, used for profiler and other stuff
- ./private/tmp:/tmp:cached
ports:
- ${PHP_HOST_PORT}:80
networks:
backend:
aliases:
- parkplus-backend
parkplus-db:
image: mysql:8
# !IMPORTANT!: This must be the same as DB_HOST variable in .env file
container_name: parkplus-db
volumes:
# Persistent DB data
- parkplus-db-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
- TZ=Europe\Rome
ports:
- ${MYSQL_HOST_PORT}:3306
networks:
backend:
aliases:
- parkplus-db
volumes:
parkplus-db-data:
driver: local
networks:
backend:
name: parkplus-network