-
Notifications
You must be signed in to change notification settings - Fork 1
/
local.yml
67 lines (61 loc) · 1.48 KB
/
local.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
volumes:
uobtheatre_local_postgres_data: {}
uobtheatre_local_postgres_data_backups: {}
services:
api:
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: uobtheatre_api_local_django
container_name: uobtheatre-api
depends_on:
- postgres
volumes:
- .:/app/uobtheatre-api:z
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
ports:
- '8000:8000'
command: /start
celery:
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
command: celery -A config worker -l debug
volumes:
- .:/app/uobtheatre-api:z
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
depends_on:
- redis
celery-beat:
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
command: celery -A config beat -l debug
volumes:
- .:/app/uobtheatre-api:z
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
depends_on:
- redis
redis:
image: redis:alpine
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: uobtheatre_api_production_postgres
container_name: uobtheatre-postgres
volumes:
- uobtheatre_local_postgres_data:/var/lib/postgresql/data:Z
- uobtheatre_local_postgres_data_backups:/backups:z
env_file:
- ./.envs/.local/.postgres
adminer:
image: adminer
ports:
- 8001:8080