-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (57 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
63 lines (57 loc) · 1.12 KB
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
version: "3.7"
services:
postgres:
image: postgres:latest
container_name: GinChat-postgres
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DB: GinChat
ports:
- "5432:5432"
networks:
- live
volumes:
- postgres_data:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4:latest
container_name: GinChat-pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: youremail@gmail.com
PGADMIN_DEFAULT_PASSWORD: your_password
PGADMIN_LISTEN_PORT: 8000
ports:
- "8000:8000"
depends_on:
- postgres
networks:
- live
redis:
image: redis:7.0.11-alpine
container_name: ginchat-redis
ports:
- "6379:6379"
networks:
- live
ginchat:
container_name: GinChatApp
build:
context: .
dockerfile: Dockerfile
command: [ "go", "run", "/app/cmd/main.go" ]
ports:
- "8080:8080"
env_file:
- .env
volumes:
- .:/app
depends_on:
- postgres
- redis
networks:
- live
networks:
live:
driver: bridge
volumes:
postgres_data: