-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (54 loc) · 1.14 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3'
services:
db_postgres:
image: postgres:latest
container_name: full_db_postgres
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
- DATABASE_HOST=${DB_HOST}
ports:
- '5432:5432'
volumes:
- database_postgres:/var/lib/postgresql/data
networks:
- fullstack
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin_container
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
depends_on:
- db_postgres
ports:
- "5050:80"
networks:
- fullstack
restart: unless-stopped
app:
container_name: app
build:
context: .
dockerfile: Dockerfile
#stdin_open: true
restart: on-failure
#tty: true
networks:
- fullstack
depends_on:
- db_postgres
volumes:
- .:/app
command: /bin/sh -c "go run . 2>> log.stderr.log"
ports:
- "${APP_PORT}:8080"
expose:
- "${APP_PORT}"
networks:
fullstack:
driver: bridge
volumes:
api:
database_postgres: