-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 894 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 894 Bytes
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
services:
database:
image: postgres
restart: unless-stopped
shm_size: 128mb
ports:
- "${POSTGRES_PORT}:5432"
environment:
POSTGRES_DB: "${POSTGRES_DB}"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
PGDATA: "/var/lib/postgresql/data/pgdata"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./database/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- default
app:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "${APP_PORT}:${APP_PORT}"
env_file:
- .env
volumes:
- ./public:/usr/src/app/public
- ./database:/usr/src/app/database
depends_on:
- database
networks:
- default
volumes:
postgres_data:
networks:
default:
name: arkham-horror-network
driver: bridge