-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
65 lines (59 loc) · 1.12 KB
/
docker-compose.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
services:
db:
image: postgres:16.3-alpine3.20
ports:
- 5432:5432
env_file:
- path: .env
required: true
restart: always
networks:
- internal
volumes:
- db_data:/var/lib/postgresql/data
- ./exported_db:/exported_db
app:
image: cosmtrek/air:v1.52.3
depends_on:
- db
ports:
- ${PORT}:${PORT}
restart: always
env_file:
- path: .env
required: true
networks:
- internal
volumes:
- .:/app
working_dir: /app
command: go run ./main.go
docs:
image: cosmtrek/air:v1.52.3
ports:
- ${DOCS_PORT}:${DOCS_PORT}
depends_on:
- app
env_file:
- path: .env
required: true
networks:
- internal
volumes:
- .:/app
working_dir: /app/docs
command: go run ./main.go
adminer:
image: adminer:4.8.1-standalone
depends_on:
- db
restart: always
ports:
- 9999:8080
networks:
- internal
volumes:
db_data:
# name: url_shortener_db_data
networks:
internal: