-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (64 loc) · 1.79 KB
/
docker-compose.yml
File metadata and controls
64 lines (64 loc) · 1.79 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
services:
# redis:
# image: redis:latest
# ports:
# - "6379:6379"
# command: redis-server
# volumes:
# - redis-data:/data
db:
image: postgres:14.6-alpine
restart: always
environment:
- POSTGRES_USER=arkham_pg_user
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
- POSTGRES_DB=arkham-horror-backend
ports:
# Bind to localhost only to prevent external access
- "127.0.0.1:5433:5432"
user: postgres
cap_drop:
- ALL
mem_limit: 512M
cpus: '0.5'
volumes:
- pgdata:/var/lib/postgresql/data:rw
- ./setup.sql:/docker-entrypoint-initdb.d/create_tables.sql:ro
secrets:
- postgres_password
web:
image: "halogenandtoast/arkham-horror:latest"
build:
context: .
args:
- GHC_VERSION=9.12.2
# ASSET_HOST is auto-detected by web-entrypoint.sh:
# unset (default): uses local images if present, CDN otherwise
# To override, uncomment one of the lines below:
# environment:
# - ASSET_HOST= # force local images
# - ASSET_HOST=https://assets.arkhamhorror.app # force CDN
# - REDIS_CONN=redis://redis:6379
secrets:
- postgres_password
ports:
- "3000:3000"
depends_on:
- db
volumes:
- ./frontend/public/img:/opt/arkham/src/frontend/dist/img
fetch-images:
profiles: ["fetch-images"]
image: amazon/aws-cli
volumes:
- ./frontend/public/img:/workspace/frontend/public/img
- ./scripts/fetch-assets.sh:/workspace/scripts/fetch-assets.sh:ro
entrypoint: ["/bin/bash", "/workspace/scripts/fetch-assets.sh"]
command: en
volumes:
pgdata:
# Docker secret for Postgres password
secrets:
postgres_password:
file: ./config/postgres_password.txt
# redis-data: