forked from forkcms/forkcms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (38 loc) · 1.33 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
version: "2.4"
services:
app:
build:
context: .
cache_from: [ghcr.io/forkcms/forkcms:latest]
working_dir: /var/www/html
ports:
- "80:80"
- "443:443"
depends_on:
- db
env_file: ./var/docker/.env
volumes:
- .:/var/www/html:cached
- ./src/Frontend/Files:/var/www/html/src/Frontend/Files:cached
- fork-cms-var:/var/www/html/var
db:
image: "mariadb:latest"
restart: always
ports:
- "3306:3306"
environment:
# Make sure to change these if you're planning on using Docker for purposes other than local development!
- MYSQL_DATABASE=forkcms
- MYSQL_ROOT_PASSWORD=kingtriton
- MYSQL_USER=forkcms
- MYSQL_PASSWORD=forkcms
volumes:
# Uncomment the next line if you want to keep mysql in a data container
# - db-data:/var/lib/mysql:rw
# By default, use a bind-mounted host directory instead. It's harder to accidentally lose all your db data!
- ./var/docker/db/data:/var/lib/mysql:rw
- ./tests/data/test_db.sql:/test_db.sql:ro
- ./var/docker/db/scripts:/docker-entrypoint-initdb.d:ro
volumes:
fork-cms-var: {}
db-data: {}