-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
74 lines (68 loc) · 1.52 KB
/
docker-compose.yaml
File metadata and controls
74 lines (68 loc) · 1.52 KB
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
version: '3.8'
services:
redis:
image: redis:latest
container_name: redis
volumes:
- redis-data:/data
networks:
- local
reverse-proxy:
build:
context: .
dockerfile: ./reverse-proxy/Dockerfile
restart: on-failure
volumes:
- "/run/docker.sock:/run/run/docker.sock:ro"
networks:
- local
- external
ports:
- '8001:80'
depends_on:
- auth-service
auth-service:
hostname: auth-service-host
build:
context: .
dockerfile: ./be-auth/Dockerfile
restart: on-failure
networks:
- local
volumes:
- ./be-auth/cmd/config.yml:/cmd/config.yml
depends_on:
- redis
environment:
APP_NAME: "auth-rest-service"
HTTP_PORT: "80"
DB_DSN: "postgres://pudinghack:pdhack27@localhost:5432/sightry?sslmode=disable"
REDIS_HOST: "redis"
REDIS_PORT: "6379"
REDIS_PASSWORD: ""
inventory-service:
hostname: inventory-service-host
build:
context: .
dockerfile: ./be-inventory/Dockerfile
restart: on-failure
networks:
- local
volumes:
- ./be-inventory/cmd/config.yml:/cmd/config.yml
depends_on:
- redis
environment:
APP_NAME: "inventory-rest-service"
HTTP_PORT: "80"
DB_DSN: "postgres://pudinghack:pdhack27@localhost:5432/sightry?sslmode=disable"
REDIS_HOST: "redis"
REDIS_PORT: "6379"
REDIS_PASSWORD: ""
networks:
local:
external: false
external:
external: true
volumes:
redis-data: