-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
72 lines (65 loc) · 1.54 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3"
# Define services
services:
# App Service
app:
# Configuration for building the docker image for the service
image: go-hexagonal:latest
ports:
- "20000:8080" # Forward the exposed port 8080 on the container to port 8080 on the host machine
restart: unless-stopped
volumes:
- ./:/go-hexagonal
- media:/files
depends_on:
- db # This service depends on db. Start that first.
networks: # Networks to join (Services on the same network can communicate with each other using their name)
- backend
# Ingress service
files:
image: nginx:alpine
restart: unless-stopped
ports:
- 20103:80
volumes:
- ./.docker/nginx/conf.d/:/etc/nginx/conf.d/
- media:/var/www/media
networks:
- backend
# DB Service
db:
image: "postgres"
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: testing
POSTGRES_DB: qrlink
networks:
- backend
volumes:
- /var/lib/postgresql/data
- ./.docker/sql/:/docker-entrypoint-initdb.d/
swagger-editor:
image: swaggerapi/swagger-editor
ports:
- "20002:8080"
swagger-ui:
image: swaggerapi/swagger-ui
ports:
- "20003:8080"
volumes:
- ./docs:/docs
environment:
SWAGGER_JSON: /docs/openapi.yaml
swagger-api:
image: stoplight/prism:3
ports:
- "20001:4010"
volumes:
- ./docs:/docs
command: mock -d -h 0.0.0.0 "/docs/openapi.yaml"
networks:
backend:
volumes:
pgdata:
media: