-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 955 Bytes
/
docker-compose.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
services:
db:
# To mirror the image railway uses minus the postgis since there isn't arm compatability for it: https://docs.railway.app/databases/postgresql#image
image: timescale/timescaledb:latest-pg15
restart: always
container_name: postgres
hostname: postgres
environment:
PGUSER: postgres
POSTGRES_PASSWORD: example
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready']
interval: 1s
timeout: 5s
retries: 10
ports:
- 5432:5432
adminer:
image: adminer
container_name: adminer
restart: always
ports:
- 8080:8080
depends_on:
db:
condition: service_healthy
server:
env_file: .docker.env
container_name: server
build:
context: .
dockerfile: Dockerfile
ports:
- '3000:3000'
depends_on:
db:
condition: service_healthy
volumes:
pgdata: