-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
55 lines (50 loc) · 1.71 KB
/
docker-compose.yaml
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
# ? ----------------------------------------------------------------------------
# ? NETWORK DEFINITION
# ? ----------------------------------------------------------------------------
networks:
mycelium_net:
driver: bridge
# ? ----------------------------------------------------------------------------
# ? SHARED CONFIGURATION
# ? ----------------------------------------------------------------------------
x-common-mycelium: &common-config
networks:
- mycelium_net
# ? ----------------------------------------------------------------------------
# ? SERVICES DEFINITION
# ? ----------------------------------------------------------------------------
services:
# ? --------------------------------------------------------------------------
# ? DATABASES
# ? --------------------------------------------------------------------------
myc-postgres:
# Inject all shared configs
<<: *common-config
container_name: myc-postgres
image: 'postgres:12'
restart: on-failure
environment:
- POSTGRES_USERNAME=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432/tcp
volumes:
- ./postgres/volume:/var/lib/postgresql/data
- ./postgres/sql/create_databases.sql:/docker-entrypoint-initdb.d/create_databases.sql:cached
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 20
myc-jaeger:
# Inject all shared configs
<<: *common-config
container_name: myc-jaeger
image: 'jaegertracing/all-in-one:latest'
restart: on-failure
environment:
- COLLECTOR_OTLP_ENABLED=true
ports:
- 16686:16686
- 4317:4317 # OTLP gRPC receiver
- 4318:4318 # OTLP HTTP receiver