-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yaml
48 lines (45 loc) · 1.37 KB
/
docker-compose.dev.yaml
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
name: go-monolithic-boilerplate-dev
services:
server:
container_name: server
build:
context: ./
dockerfile: Dockerfile.dev
networks:
- go-monolithic-boilerplate
ports:
- "8000:8000"
restart: always
environment:
- POSTGRES_HOST=postgresql-database
- POSTGRES_PORT=5432
- POSTGRES_USER=go-monolithic-boilerplate
- POSTGRES_PASSWORD=go-monolithic-boilerplate
- POSTGRES_DB=go-monolithic-boilerplate
- SWAGGER_USER=go-monolithic-boilerplate
- SWAGGER_PASSWORD=go-monolithic-boilerplate
depends_on:
- postgresql-database
volumes:
- ./:/src
- ./config.dev.yaml:/src/config.yaml
postgresql-database:
container_name: postgresql-database
image: postgres:14.6
environment:
- POSTGRES_USER=go-monolithic-boilerplate
- POSTGRES_PASSWORD=go-monolithic-boilerplate
- POSTGRES_DB=go-monolithic-boilerplate
ports:
- "5432:5432"
networks:
- go-monolithic-boilerplate
volumes:
- postgresql-data:/var/lib/postgresql/data/
volumes:
postgresql-data:
driver: local
external: false
networks:
go-monolithic-boilerplate:
driver: bridge