-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.base.yaml
More file actions
88 lines (84 loc) · 2.38 KB
/
docker-compose.base.yaml
File metadata and controls
88 lines (84 loc) · 2.38 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
84
85
86
87
88
# This file defines the base services that will be extended from in order for us to support multiple platforms/deployment options
# While it is fine to import .env files through `env_file` option here, `environment` should never be defined in this file - it will be overwritten
services:
aftermath-database-base:
image: postgres:17
restart: always
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_DB: ${DATABASE_NAME}
PGDATA: /var/lib/pgdata
volumes:
- ${DATABASE_PATH}:/var/lib/pgdata
healthcheck:
test: ["CMD", "pg_isready", "-U", "${DATABASE_USER}"]
start_period: 0s
interval: 1s
timeout: 3s
retries: 5
deploy:
resources:
reservations:
memory: 2048m
limits:
memory: 2048m
aftermath-migrate-base:
image: ghcr.io/cufee/aftermath-migrations:${ENVIRONMENT}
build:
context: .
dockerfile: Dockerfile.migrate
command: migrate apply --dir "file:///migrations?format=golang-migrate" --tx-mode all --url "${DATABASE_URL}"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
resources:
reservations:
memory: 2048m
limits:
memory: 2048m
aftermath-backup-base:
image: ghcr.io/cufee/aftermath-backup:${ENVIRONMENT}
build:
context: .
dockerfile: Dockerfile.backup
deploy:
resources:
reservations:
memory: 2048m
limits:
memory: 2048m
aftermath-service-base:
pull_policy: always
image: ghcr.io/cufee/aftermath:${ENVIRONMENT}
build:
context: .
dockerfile: Dockerfile
args:
BRAND_FLAVOR: ${BRAND_FLAVOR}
LOCALIZE_API_KEY: ${LOCALIZE_API_KEY}
env_file:
- .env
deploy:
# go runtime will try to keep memory usage right under the container limit
resources:
reservations:
memory: 256m
limits:
memory: 256m
aftermath-collector-base:
image: ghcr.io/cufee/aftermath-collector:${ENVIRONMENT}
build:
context: .
dockerfile: Dockerfile.collector
env_file:
- .env
deploy:
# go runtime will try to keep memory usage right under the container limit
resources:
reservations:
memory: 256m
limits:
memory: 256m