-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-stack.yml
More file actions
42 lines (38 loc) · 754 Bytes
/
Copy pathdocker-stack.yml
File metadata and controls
42 lines (38 loc) · 754 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
42
version: '3.4'
networks:
net:
driver: overlay
volumes:
hexchan_pg_data:
driver: local
services:
db:
image: postgres:11-alpine
environment:
- POSTGRES_DB=hexchan
- POSTGRES_USER=hexchan
- POSTGRES_PASSWORD=hexchan
networks:
- net
volumes:
- hexchan_pg_data:/var/lib/postgresql/data
app:
image: hexchan:latest
environment:
- FAKE_CONTENT=False
- DEBUG=False
- DB_HOST=hexchan_db
- DB_PORT=5432
- DB_NAME=hexchan
- DB_USER=hexchan
- DB_PASSWORD=hexchan
# - AWS_ACCESS_KEY_ID=
# - AWS_SECRET_ACCESS_KEY=
# - AWS_STORAGE_BUCKET_NAME=
ports:
- 80:80
- 443:443
networks:
- net
depends_on:
- db