-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
45 lines (40 loc) · 986 Bytes
/
docker-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
version: "3.8"
services:
postgres:
container_name: postgres
image: postgres:15.3
restart: always
networks:
skeleton:
ports:
- "54329:5432"
environment:
- POSTGRES_USER=devbox
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_DB=devbox
volumes:
- "postgres15-data:/var/lib/postgresql/data/:rw"
- "./scripts/backend/db.sh:/home/db.sh"
- "./db/schema.sql:/home/schema.sql"
command: postgres #-c 'config_file=/etc/postgresql/postgresql.conf'
nats:
image: nats:2.9
restart: always
ports:
- 4222:4222
pgweb:
container_name: skeleton-pgweb
restart: always
image: sosedoff/pgweb:0.14.1
command: /usr/bin/pgweb --bind=0.0.0.0 --listen=8081 --url=postgres://devbox@skeleton-postgres:5432/postgres?sslmode=disable
ports:
- "8999:8081"
networks:
skeleton:
depends_on:
- postgres
networks:
skeleton:
name: skeleton
volumes:
postgres15-data: