-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yml
51 lines (50 loc) · 1.33 KB
/
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
name: dbs-tester
services:
server:
build:
context: .
target: server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- private_volume:/usr/local/app/private
- ./data/databases:/var/databases
environment:
DATABASE_HOST: ${DATABASE_HOST}
DATABASE_NAME: ${DATABASE_NAME}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
DATABASE_PORT: ${DATABASE_PORT}
DATABASE_USER: ${DATABASE_USER}
DJANGO_SETTINGS_MODULE: ${DJANGO_SETTINGS_MODULE}
GITHUB_TOKEN: ${GITHUB_TOKEN}
GITHUB_USER: ${GITHUB_USER}
REDIS_HOST: ${REDIS_HOST}
SECRET_KEY: ${SECRET_KEY}
ports:
- 8000:9000
worker:
build:
context: .
target: worker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data/databases:/var/databases
environment:
DATABASE_HOST: ${DATABASE_HOST}
DATABASE_NAME: ${DATABASE_NAME}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
DATABASE_PORT: ${DATABASE_PORT}
DATABASE_USER: ${DATABASE_USER}
DJANGO_SETTINGS_MODULE: ${DJANGO_SETTINGS_MODULE}
GITHUB_TOKEN: ${GITHUB_TOKEN}
GITHUB_USER: ${GITHUB_USER}
REDIS_HOST: ${REDIS_HOST}
SECRET_KEY: ${SECRET_KEY}
scale: 4
depends_on:
- server
networks:
intranet:
name: dbs
external: true
volumes:
private_volume: