-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (48 loc) · 883 Bytes
/
docker-compose.yml
File metadata and controls
53 lines (48 loc) · 883 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
52
53
version: '3.4'
services:
place:
build:
context: .
dockerfile: .docker/Dockerfile
restart: always
environment:
ENV: dev
ports:
- $REST_PORT:$REST_PORT
volumes:
- .:/go/src/
depends_on:
- postgres
networks:
- place
extra_hosts:
- 'host.docker.internal:172.17.0.1'
postgres:
image: postgres:9.4
restart: always
tty: true
environment:
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_USER: $POSTGRES_USER
POSTGRES_DB: $POSTGRES_DB
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- $DB_PORT:5432
networks:
- place
pgadmin:
image: adminer:4.8.1
restart: always
ports:
- 8080:8080
depends_on:
- postgres
networks:
- place
volumes:
pgdata:
driver: local
networks:
place:
driver: bridge