-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
50 lines (44 loc) · 1.04 KB
/
docker-compose.yaml
File metadata and controls
50 lines (44 loc) · 1.04 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
version: '3'
networks:
shared-network:
driver: bridge
services:
goauthsvc:
container_name: goauthsvc
build:
context: .
dockerfile: ./Dockerfile
image: goauthsvc:latest # If you specify image as well as build, then, docker-compose names
# the built image with the webapp and optional tag specified in image
ports:
- 8080:8080
- 6060:6060
depends_on:
- zipkin
- postgres
networks:
- shared-network
# This sidecar allows for the viewing of traces.
zipkin:
container_name: zipkin
image: openzipkin/zipkin:2
ports:
- 9411:9411
networks:
- shared-network
postgres:
container_name: postgres
image: postgres:13.2-alpine
environment:
- POSTGRES_USER=goauthsvc
- POSTGRES_PASSWORD=secret1234
- PGDATA=/var/lib/postgresql/data
- POSTGRES_DB=goauthsvc
ports:
- 5432:5432
volumes:
- fd_pg_data:/var/lib/postgresql/data
networks:
- shared-network
volumes:
fd_pg_data: