-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 805 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 805 Bytes
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
version: '3'
services:
server:
image: golang:latest
volumes:
- ".:/home"
working_dir: "/home"
env_file:
- .env.local
ports:
- 8080:8080
command: ["go", "run", "main.go"]
postgres:
image: postgres:latest
env_file:
- .env.local
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data/
pgweb:
image: 'sosedoff/pgweb:latest'
environment:
DATABASE_URL: postgres://user:pass@postgres:5432/db?sslmode=disable
depends_on:
- postgres
ports:
- 8081:8081
command: ["sh", "-c", "sleep 3; /usr/bin/pgweb --bind=0.0.0.0 --listen=8081"]
export:
image: ghcr.io/tk42/graphql-editor:latest
env_file:
- .env.local
volumes:
- .:/home
volumes:
postgres_data: