-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompose.yaml
52 lines (50 loc) · 1.21 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
services:
celestial:
build:
context: .
target: base
entrypoint: iex -S
command: mix phx.server
tty: true
stdin_open: true
environment:
CELESTIAL_PORTAL_HOST: ${CELESTIAL_PORTAL_HOST:?}
POSTGRES_HOST: celestial-postgres
ports:
- "${CELESTIAL_GATEWAY_PORT:-4123}:4123"
- "${CELESTIAL_PORTAL_PORT:-4124}:4124"
- "${CELESTIAL_API_PORT:-4000}:4000"
volumes:
- .:/workspace
working_dir: /workspace
depends_on:
celestial-postgres:
condition: service_healthy
restart: unless-stopped
celestial-migration:
build:
context: .
target: base
command: mix ecto.migrate
tty: true
environment:
POSTGRES_HOST: celestial-postgres
volumes:
- .:/workspace
working_dir: /workspace
depends_on:
celestial-postgres:
condition: service_healthy
restart: on-failure
celestial-postgres:
image: postgres:13.1-alpine
tty: true
environment:
POSTGRES_USER: celestial
POSTGRES_PASSWORD: celestial
POSTGRES_DB: celestial_dev
healthcheck:
test: pg_isready -U celestial -d celestial_dev
ports:
- "${POSTGRES_PORT:-5432}:5432"
restart: always