Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (82 loc) · 1.47 KB
/
Copy pathdocker-compose.yml
File metadata and controls
83 lines (82 loc) · 1.47 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: "3.9"
services:
gamethreads:
build: .
networks:
- gamethreads
environment:
- praw_check_for_updates=false
- praw_user_agent=gamethreads/1.0
- praw_client_id
- praw_client_secret
- praw_refresh_token
- POSTGRES_PASSWORD
entrypoint:
- gamethreads
- $SUB
depends_on:
- postgres
profiles:
- prod
redditauth:
build: .
environment:
- praw_client_id
- praw_client_secret
- praw_redirect_uri
entrypoint:
- redditauth
- read,submit,edit,wikiread
profiles:
- redditauth
ports:
- "8080:8080"
initdb:
build: .
networks:
- gamethreads
environment:
- POSTGRES_PASSWORD
entrypoint:
- models
- create_all
depends_on:
- postgres
profiles:
- init
preview:
build: .
networks:
- gamethreads
environment:
- POSTGRES_PASSWORD
- FLASK_APP=gamethreads.preview
entrypoint:
- flask
- run
- "--host=0.0.0.0"
- "--port"
- "${WEBPORT}"
depends_on:
- postgres
ports:
- "${WEBPORT}:${WEBPORT}"
profiles:
- preview
postgres:
image: postgres:14-alpine
networks:
- gamethreads
environment:
- POSTGRES_PASSWORD
- PGDATA=/data/postgres
volumes:
- postgres:/data/postgres
profiles:
- prod
- init
- preview
networks:
gamethreads:
volumes:
postgres: