-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
33 lines (31 loc) · 1.22 KB
/
docker-compose.dev.yml
File metadata and controls
33 lines (31 loc) · 1.22 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
version: '3.8'
services:
postgres:
image: postgres:17
environment:
- POSTGRES_DB=kinomer
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./postgres/init/kinomer.2020-09-29.sql:/docker-entrypoint-initdb.d/kinomer.2020-09-29.sql:ro
- ./postgres/init/kinomesequence_data.txt:/docker-entrypoint-initdb.d/kinomesequence_data.txt:ro
- ./postgres/init/kinomespecies_data.txt:/docker-entrypoint-initdb.d/kinomespecies_data.txt:ro
- ./postgres/init/kinomespeciesgroup_data.txt:/docker-entrypoint-initdb.d/kinomespeciesgroup_data.txt:ro
ports:
# Bind to localhost only for development access. This limits exposure of the trust-based
# authentication to the local machine. Apache accesses postgres via Docker's internal network.
- "127.0.0.1:5432:5432"
container_name: kinomer_postgres
apache:
build:
context: .
dockerfile: Dockerfile.dev # Optional: use if you add dev-specific Dockerfile
ports:
- "8080:80"
volumes:
- ./httpd/htdocs:/usr/local/apache2/htdocs:rw
- ./httpd/cgi-bin:/usr/local/apache2/cgi-bin:rw
container_name: kinomer_apache
depends_on:
- postgres