-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (39 loc) · 908 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (39 loc) · 908 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
38
39
40
version: "3"
networks:
internal:
external: false
services:
app:
container_name: project_tides_app
build:
context: .
dockerfile: Dockerfile-dev
environment:
- DATABASE_USER=user1
- DATABASE_PASSWORD=pass1
- DATABASE_DB=main_db
- DATABASE_PORT=5432
- DATABASE_HOST=db
ports:
- 4000:4000
volumes:
- .:/app
stdin_open: true
tty: true
networks:
- internal
depends_on:
- db
db:
image: postgres:10-alpine
restart: always
ports:
- 5433:5432
volumes:
- ./docker-volumes/postgresql:/var/lib/postgresql
environment:
- POSTGRES_USER=user1
- POSTGRES_PASSWORD=pass1
- POSTGRES_DB=main_db
networks:
- internal