-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (38 loc) · 941 Bytes
/
docker-compose.yml
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.8"
services:
postgres:
image: postgres
container_name: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT}:5432"
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
volumes:
- pgadmin_data:/var/lib/pgadmin
ports:
- "${PGADMIN_PORT}:80"
go-tools:
build:
context: .
dockerfile: Dockerfile.go-tools
environment:
GOOSE_DRIVER: ${GOOSE_DRIVER}
GOOSE_DBSTRING: ${GOOSE_DBSTRING}
GOOSE_MIGRATION_DIR: ${GOOSE_MIGRATION_DIR}
volumes:
- .:/app
depends_on:
- postgres
volumes:
postgres_data:
pgadmin_data: