-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
71 lines (71 loc) · 1.68 KB
/
docker-compose.yaml
File metadata and controls
71 lines (71 loc) · 1.68 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
---
services:
mongodb:
image: mongo:latest
container_name: mongodb
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: mypassword
MONGO_INITDB_DATABASE: playground
ports:
- 27017:27017
volumes:
- ./src/mongo/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
# profiles: [ "db" ]
mysqldb:
image: mysql:latest
container_name: mysqldb
restart: always
environment:
MYSQL_ROOT_PASSWORD: mypassword
ports:
- 3306:3306
# profiles: [ "db" ]
postgresdb:
image: postgres:latest
container_name: postgresdb
restart: always
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: mypassword
ports:
- 5432:5432
# profiles: [ "db" ]
# api:
# # need to ensure DBs are live before this will work
# build: src/api/
# container_name: api
# restart: always
# environment:
# # most defaulted, see src/api/config.go
# # mysql
# MYSQL_ENABLED: "true"
# MYSQL_HOST: mysqldb
# # postgres
# POSTGRES_ENABLED: "true"
# POSTGRES_HOST: postgresdb
# # mongo
# MONGO_ENABLED: "true"
# MONGO_HOST: mongodb
# ports:
# - 8080:8080
# healthcheck:
# test:
# [
# "CMD",
# "curl",
# "-f",
# "http://localhost:8080/api/v1/health"
# ]
# interval: 30s
# timeout: 10s
# retries: 5
# depends_on:
# - mongodb
# - mysqldb
# - postgresdb
# links:
# - mongodb
# - mysqldb
# - postgresdb