-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
67 lines (66 loc) · 1.46 KB
/
compose.yaml
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
include:
- compose/monitoring.yaml
- compose/aux.yaml
services:
zest-api:
profiles: [ "server" ]
container_name: zest-api
build: .
ports:
- 8080:8080
environment:
- WITH_AUTH=true
volumes:
- type: bind
source: ./secrets/
target: /secrets/
- type: bind
source: .env
target: /.env
depends_on:
redis:
condition: service_started
postgres:
condition: service_healthy
redis:
profiles: [ "server" ]
image: redis:alpine
container_name: redis
restart: unless-stopped
ports:
- 6379:6379
postgres:
image: postgres
container_name: postgres
restart: unless-stopped
ports:
- 5432:5432
environment:
- POSTGRES_USER=zeke
- POSTGRES_PASSWORD=reyna
- POSTGRES_DB=zest
- PGDATA=/var/lib/postgresql/data/_data
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U zeke" ]
interval: 5s
timeout: 5s
retries: 5
atlas:
profiles: [ "dev" ]
image: postgres
container_name: atlasdevdb
ports:
- 5444:5432
environment:
- POSTGRES_USER=atlas
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=postgres
volumes:
pgdata:
driver: local # TODO(zeke): doing local for now, need a better way of pulling data from deployed instance
driver_opts:
type: none
o: bind
device: ./pgdata/workspace_pgdata