-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.dev+remotedb.yml
More file actions
35 lines (35 loc) · 1012 Bytes
/
Copy pathdocker-compose.dev+remotedb.yml
File metadata and controls
35 lines (35 loc) · 1012 Bytes
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
version: '2.1'
services:
app:
image: elixir_drip:dev
build:
context: .
dockerfile: Dockerfile.dev
env_file: ./env/dev.env
environment:
DB_USER: postgres
DB_PASS: dmJkzNco16KkH4yB
DB_NAME: elixir_drip_dev
DB_HOST: postgres-cloud
ports:
- 4000:4000
command: sh /opt/app/elixir_drip/script/start.sh
depends_on:
postgres-cloud:
condition: service_started
networks:
- default
volumes:
- .:/opt/app/elixir_drip
postgres-cloud:
environment:
INSTANCE_CONNECTION_NAME: intense-talent-188323:europe-west1:elixir-drip-production
image: gcr.io/cloudsql-docker/gce-proxy:1.11
volumes:
- /cloudsql:/cloudsql
- ./secrets/elixirdrip-prod-sql-client-creds.json:/creds.json
command: ["/cloud_sql_proxy", "-instances=intense-talent-188323:europe-west1:elixir-drip-production=tcp:0.0.0.0:5432", "-credential_file=/creds.json"]
ports:
- 5000:5432
networks:
- default