-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.local.yml
49 lines (45 loc) · 1.16 KB
/
compose.local.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
services:
webserver:
container_name: celements-web
image: celements-dev:latest
build:
context: .
dockerfile: docker/Dockerfile-local
ports:
- "2080:8080" # tomcat
- "2000:8000" # remote debugging
env_file: ./.env
environment:
- TZ=Europe/Zurich
volumes:
- ./target/celements-web:/usr/local/tomcat/webapps/ROOT:ro
- ./docker/tomcat/log4j2.properties:/usr/local/tomcat/webapps/ROOT/WEB-INF/classes/log4j2.properties:ro
restart: unless-stopped
networks:
- celements
logging:
driver: journald
depends_on:
- sqlserver
sqlserver:
container_name: celements-db
image: mariadb:10.1
ports:
- "2306:3306" # for direct client access
env_file: ./.env
environment:
- "MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD:?}"
volumes:
- db-data:/var/lib/mysql
- ./docker/sqlserver/celements.cnf:/etc/mysql/conf.d/celements.cnf:ro
- ./docker/sqlserver/init:/docker-entrypoint-initdb.d:ro
restart: unless-stopped
networks:
- celements
logging:
driver: journald
volumes:
db-data:
networks:
celements:
driver: bridge