-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
39 lines (38 loc) · 931 Bytes
/
docker-compose.yml
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
version: '3'
services:
cloud-sql-proxy:
image: gcr.io/cloudsql-docker/gce-proxy:1.13
command: /cloud_sql_proxy -instances=myinstance:us-central1:myproject=tcp:0.0.0.0:5433 -credential_file=/credentials
volumes:
- ./gconfig.json:/credentials
expose:
- 5433
api:
build: ./api/
image: api:v1
container_name: api
depends_on:
- cloud-sql-proxy
environment:
DATABASE_URL: postgres+pool://
GOOGLE_APPLICATION_CREDENTIALS: /credentials
MAILGUN_DOMAIN: mailgun.files.gg
MAILGUN_TOKEN:
RECAPTCHA_SECRET:
RPC_KEY:
SECRET_KEY:
STORAGE_BUCKET: filesgg
volumes:
- ./gconfig.json:/credentials
expose:
- 8080
nginx:
image: nginx:latest
depends_on:
- api
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/certificates:/certificates
ports:
- 80:80
- 443:443