-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (43 loc) · 863 Bytes
/
docker-compose.yml
File metadata and controls
51 lines (43 loc) · 863 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
42
43
44
45
46
47
48
49
50
51
version: '3'
networks:
dacn:
services:
web-service:
build:
dockerfile: backend.dockerfile
context: .
ports:
- "3000:3000"
environment:
- APP_NAME=github
depends_on:
- database
networks:
- dacn
database:
image: postgres:latest
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=123456
- POSTGRES_DB=golang_project
- DATABASE_HOST=database
ports:
- '5432:5432'
volumes:
- dbdata_postgres:/var/lib/postgresql/data
networks:
- dacn
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: live@admin.com
PGADMIN_DEFAULT_PASSWORD: password
depends_on:
- database
ports:
- "5050:80"
networks:
- dacn
restart: unless-stopped
volumes:
dbdata_postgres: