-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
67 lines (63 loc) · 1.41 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
services:
postgres:
container_name: postgres
image: timescale/timescaledb-ha:pg16
restart: always
ports:
- "5433:5433"
environment:
- POSTGRES_USER=chingu
- POSTGRES_PASSWORD=chingu
- POSTGRES_DB=dashboard
- PGPORT=5433
volumes:
- pgdata:/var/lib/postgresql/data
postgres-test:
container_name: postgres-test
image: timescale/timescaledb-ha:pg16
restart: always
environment:
- POSTGRES_USER=chingu
- POSTGRES_PASSWORD=chingu
- POSTGRES_DB=dashboard
- PGPORT=5434
ports:
- "5434:5434"
volumes:
- pgdata-test:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
restart: unless-stopped
environment:
- PGADMIN_DEFAULT_EMAIL=chinguadmin@chingu.com
- PGADMIN_DEFAULT_PASSWORD=chingu5432
depends_on:
- postgres
ports:
- "4000:80"
volumes:
- pgadmin-data:/var/lib/pgadmin
api:
build: .
restart: always
env_file:
- .env
environment:
- DATABASE_URL=postgresql://chingu:chingu@postgres:5433/dashboard?schema=public
ports:
- "8000:8000"
- "5555:5555"
depends_on:
- postgres
volumes:
- /usr/src/app/node_modules
- .:/usr/src/app
command: ['yarn', 'start:dev']
volumes:
pgdata:
pgdata-test:
pgadmin-data:
networks:
default:
name: chingu-dashboard-be