This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
134 lines (125 loc) · 3.17 KB
/
docker-compose.yml
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
version: "3.4"
services:
db:
image: postgres:12
restart: unless-stopped
environment:
POSTGRES_DB: virtualbarcamp
POSTGRES_USER: virtualbarcamp
POSTGRES_PASSWORD: virtualbarcamp
test-db:
image: postgres:12
restart: unless-stopped
environment:
POSTGRES_DB: virtualbarcamp
POSTGRES_USER: virtualbarcamp
POSTGRES_PASSWORD: virtualbarcamp
redis:
image: redis:6
restart: unless-stopped
test-redis:
image: redis:6
restart: unless-stopped
ui:
image: node:14
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- .:/app
- /app/node_modules
working_dir: /app
command: bash -c 'yarn && yarn dev'
environment:
TSC_WATCHFILE: UseFsEventsWithFallbackDynamicPolling
app:
build:
context: .
target: dev-base
restart: unless-stopped
ports:
- "8000:8000"
volumes:
- .:/app
depends_on:
- db
- ui
environment: &app_config
SECRET_KEY: 's3btzxqij&5ep%bzo^81h)div09@)xf3u_yh86@l(t+m^'
DEBUG: "True"
DB_HOST: db
DB_USER: virtualbarcamp
DB_PASSWORD: virtualbarcamp
DB_NAME: virtualbarcamp
REDIS_URI: redis://redis
WEBPACK_DEV_SERVER_MANIFEST: "http://ui:3000/build/manifest.json"
DISCORD_OAUTH_CLIENT_ID: ${DISCORD_OAUTH_CLIENT_ID}
DISCORD_OAUTH_CLIENT_SECRET: ${DISCORD_OAUTH_CLIENT_SECRET}
DISCORD_OAUTH_BOT_TOKEN: ${DISCORD_OAUTH_BOT_TOKEN}
DISCORD_GUILD_ID: ${DISCORD_GUILD_ID}
DISCORD_MODERATOR_ROLE_ID: ${DISCORD_MODERATOR_ROLE_ID}
working_dir: /app
command: bash -c 'poetry install --no-root && poetry run ./manage.py migrate && poetry run ./manage.py runserver 0.0.0.0:8000'
app_test:
build:
context: .
target: dev-base
restart: unless-stopped
volumes:
- .:/app
depends_on:
- test-redis
- test-db
environment:
<<: *app_config
DB_HOST: test-db
REDIS_URI: redis://test-redis
DISCORD_SYNC_DISABLED: "True"
working_dir: /app
command: bash -c 'poetry install --no-root && poetry run ptw virtualbarcamp -- --testmon'
queueworker:
build:
context: .
target: dev-base
restart: unless-stopped
volumes:
- .:/app
depends_on:
- redis
- db
environment:
<<: *app_config
DEBUG: "False"
working_dir: /app
command: bash -c 'poetry install --no-root && poetry run celery -A virtualbarcamp worker -l info'
queuebeat:
build:
context: .
target: dev-base
restart: unless-stopped
volumes:
- .:/app
depends_on:
- redis
- db
environment:
<<: *app_config
DEBUG: "False"
working_dir: /app
command: bash -c 'poetry install --no-root && poetry run celery -A virtualbarcamp beat -l info -S django --pidfile=/tmp/celerybeat.pid'
logging:
driver: "none"
bot:
build:
context: .
target: dev-base
restart: unless-stopped
volumes:
- .:/app
depends_on:
- redis
- db
environment:
<<: *app_config
working_dir: /app
command: bash -c 'poetry install --no-root && poetry run python -mvirtualbarcamp.bot'