-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 854 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (41 loc) · 854 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
services:
postgres:
image: postgres:17
container_name: gobudget_postgres
restart: always
env_file:
- .env
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
ports:
- "${DB_PORT}:5432"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- gobudget_net
api:
container_name: gobudget_api
image: golang:1.24-alpine
working_dir: /app
command: ["sh", "-c", "go install github.com/air-verse/air@latest && air"]
env_file:
- .env
volumes:
- .:/app
ports:
- "${WEB_SERVER_PORT}:3333"
depends_on:
- postgres
networks:
- gobudget_net
tty: true
stdin_open: true
environment:
- CGO_ENABLED=0
volumes:
pgdata:
networks:
gobudget_net:
driver: bridge