-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 820 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 820 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
41
42
version: "3.5"
services:
backend-d:
container_name: backend-d
image: backend-d
depends_on:
- postgres
security_opt:
- seccomp:unconfined
cap_add:
- SYS_PTRACE
ports:
- 8080:8080
networks:
- ticket_network
environment:
- DATABASE_NAME=root
- DATABASE_USER=root
- DATABASE_PASS=root
- DATABASE_HOST=postgres
restart: always
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_USER: 'root'
POSTGRES_PASSWORD: 'root'
POSTGRES_DB: 'root'
ports:
- 5431:5432
volumes:
- /var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- ticket_network
restart: always
networks:
ticket_network:
driver: bridge