-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose-local.yml
79 lines (79 loc) · 1.68 KB
/
docker-compose-local.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: "3.8"
services:
app:
container_name: "gobel-api"
env_file: ".env"
build:
context: "./app"
dockerfile: "Dockerfile.local"
ports:
- "8080:8080"
volumes:
- ./app:/go/gobel-api/app
networks:
- gobel_link
depends_on:
- mysql
mysql:
container_name: "gobel-api-mysql"
env_file: ".env"
build:
context: "./mysql"
dockerfile: "Dockerfile.local"
args:
PLATFORM: "${PLATFORM}"
ports:
- "3306:3306"
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/initdb.d:/docker-entrypoint-initdb.d
- ./mysql/log:/var/log/mysql
cap_add:
- SYS_ADMIN
security_opt:
- seccomp:unconfined
networks:
- gobel_link
gondola:
container_name: "gobel-api-gondola"
build:
context: "./gondola"
dockerfile: "Dockerfile.local"
args:
PLATFORM: "${PLATFORM}"
ports:
- "80:80"
- "443:443"
volumes:
- ./gondola/certificates:/certificates
networks:
- gobel_link
depends_on:
- app
redis:
container_name: "gobel-api-redis"
env_file: ".env"
build:
context: "./redis"
dockerfile: "Dockerfile.local"
ports:
- "6379:6379"
volumes:
- ./redis/data:/var/lib/redis
networks:
- gobel_link
redis-insight:
container_name: "gobel-api-redis-insight"
env_file: ".env"
build:
context: "./redis-insight"
dockerfile: "Dockerfile.local"
ports:
- "8001:8001"
volumes:
- ./redis-insight/data:/var/lib/redis-insight
networks:
- gobel_link
networks:
gobel_link:
external: true