-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
47 lines (42 loc) · 1.24 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
# Use postgres/example user/password credentials
version: "3.9"
services:
dev_db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: example
volumes:
- dev_db_data:/var/lib/postgresql/data
ports:
- 5432:5432
test_db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: example
volumes:
- test_db_data:/var/lib/postgresql/data
ports:
- 5433:5432
# cloud_sql_proxy:
# image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.9.0-alpine
# command: ./cloud-sql-proxy study-and-learn-400500:us-central1:study-and-learn-db --credentials-file /config/application_default_credentials.json --address 0.0.0.0 --port 5432 --private-ip --run-connection-test
# ports:
# - 5434:5432
# volumes:
# - /home/lincolnjpg/.config/gcloud/application_default_credentials.json:/config/application_default_credentials.json
rabbitmq:
image: "rabbitmq:4.0.4-management-alpine"
restart: always
hostname: "localhost" # must be set if you want persistence to work
stop_signal: SIGTERM
ports:
- "5672:5672"
- "15672:15672"
volumes:
- rabbitmq-data:/var/lib/rabbitmq
volumes:
dev_db_data:
test_db_data:
rabbitmq-data: