-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (32 loc) · 1006 Bytes
/
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
# docker-compose.yml for running a local copy of the declprofs Web app
services:
db:
image: mariadb:10.9.4
environment:
- MYSQL_ROOT_PASSWORD=secret
ports:
# DECLPROFS_DB_PORT is set in .env
- ${DECLPROFS_DB_PORT}:3306
volumes:
- mariadb:/var/lib/mysql
- ./seed/202406-001-schema.sql:/docker-entrypoint-initdb.d/202406-001-schema.sql
httpd:
build: .
image: declprofs
volumes:
# Like production:
- ./devsupport/access_params:/app/etc/access_params
- ./devsupport/dbs.conf:/usr/local/etc/dbs.conf
# Not like production — Mount source code on top of the
# `docker build`t code, for faster embugging:
- ./cgi-bin:/usr/local/apache2/cgi-bin:ro
- .:/usr/local/apache2/htdocs/extra:ro
- ./images:/usr/local/apache2/htdocs/images:ro
- ./tmpl:/app/tmpl:ro
links:
- db:db
ports:
# DECLPROFS_HTTP_PORT is set in .env
- "${DECLPROFS_HTTP_PORT}:8080"
volumes:
mariadb: