-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.github.yml
More file actions
49 lines (45 loc) · 1.33 KB
/
docker-compose.github.yml
File metadata and controls
49 lines (45 loc) · 1.33 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
volumes:
knowledge_commons_profiles_github_postgres_data: {}
knowledge_commons_profiles_github_postgres_data_backups: {}
services:
django:
build:
context: .
dockerfile: ./compose/github/django/Dockerfile
args:
ECR_REGISTRY: ${ECR_REGISTRY:-registry}
image: knowledge_commons_profiles_github_django
container_name: knowledge_commons_profiles_github_django
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
volumes:
- .:/app:z
env_file:
- ./.envs/.github/.django
- ./.envs/.github/.postgres
ports:
- '8000:8000'
command: /start
postgres:
build:
context: .
dockerfile: ./compose/github/postgres/Dockerfile
image: knowledge_commons_profiles_github_postgres
container_name: knowledge_commons_profiles_github_postgres
volumes:
- knowledge_commons_profiles_github_postgres_data:/var/lib/postgresql
- knowledge_commons_profiles_github_postgres_data_backups:/backups
env_file:
- ./.envs/.github/.postgres
environment:
POSTGRES_INITDB_ARGS: "--locale-provider=builtin --builtin-locale=C.UTF-8"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: docker.io/redis:6