-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
49 lines (45 loc) · 1.1 KB
/
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
40
41
42
43
44
45
46
47
48
49
version: '3'
services:
events-nginx:
image: nginx:latest
container_name: events-nginx
ports:
- '8000:80'
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- events-api
events-api:
container_name: events-api
image: excel-platform/events/api
build:
context: ./Excel-Events-Backend/.
dockerfile: Development.Dockerfile
environment:
- POSTGRES_DB=${POSTGRES_DB}
- GOOGLE_CREDENTIAL_FILE=${GOOGLE_CREDENTIAL_FILE}
- GOOGLE_CLOUD_STORAGE_BUCKET=${GOOGLE_CLOUD_STORAGE_BUCKET}
- CLOUD_STORAGE_URL=${CLOUD_STORAGE_URL}
- API_PREFIX=${API_PREFIX}
- SECRET_KEY=${SECRET_KEY}
volumes:
- /api/obj
- /api/bin
- ./Excel-Events-Backend/API/.:/api
ports:
- '5000:5000'
restart: on-failure
depends_on:
- events-db
events-db:
image: postgres
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin
- POSTGRES_DB=ExcelEvents
volumes:
- pgdata-events:/var/lib/postgresql/data
ports:
- 5432:5432
volumes:
pgdata-events: