-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (53 loc) · 1.01 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
version: '3.9'
services:
server:
build:
context: .
dockerfile: ./docker/app/Dockerfile
target: develop
container_name: web-go
ports:
- "8080:8080"
- "40000:40000"
volumes:
- .:/app
depends_on:
- db
security_opt:
- apparmor:unconfined
cap_add:
- SYS_PTRACE
networks:
- migrate-ntwk
#db
db:
build:
context: .
dockerfile: ./docker/db/Dockerfile
container_name: web-postgres
expose:
- 5432
ports:
- "15432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ./db:/docker-entrypoint-initdb.d
networks:
- migrate-ntwk
migrate:
tty: true
build:
context: .
dockerfile: ./docker/migrate/Dockerfile
container_name: go-migrate
volumes:
- ./db:/docker-entrypoint-initdb.d
working_dir: /docker-entrypoint-initdb.d
depends_on:
- db
networks:
- migrate-ntwk
networks:
migrate-ntwk: