-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (35 loc) · 881 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (35 loc) · 881 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: '2'
services:
app:
image: 'drone-controller:latest'
build:
context: .
dockerfile: Dockerfile
container_name: app
depends_on:
- db
expose:
- 8081
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:5432/drone_controller
- SPRING_DATASOURCE_USERNAME=postgres_user
- SPRING_DATASOURCE_PASSWORD=postgres_pass
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
- SPRING_PROFILES_ACTIVE=live
volumes:
- ~/Documents:/user/local/Documents
network_mode: host
db:
build:
context: .
dockerfile: DBDockerfile
volumes:
- .:/docker-entrypoint-initdb.d/
container_name: db
environment:
- POSTGRES_USER=postgres_user
- POSTGRES_PASSWORD=postgres_pass
ports:
- "5432:5432"
network_mode: host
# docker rm -f $(docker ps -a -q)