-
-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 724 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 724 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
36
37
version: '3.6'
services:
resources-api:
image: resources:latest
build: .
container_name: resources-api
env_file:
- .env
environment:
- UID=${UID}
- GID=${GID}
user: ${UID}:${GID}
volumes:
- .:/src
ports:
- 5000:5000
links:
- resources-postgres
depends_on:
- resources-postgres
resources-postgres:
image: postgres:10.1-alpine
container_name: resources-postgres
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST=${POSTGRES_HOST}
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data/
volumes:
postgres_data: