blob: 42e2371f3806fc1df8f7609c84191b40752911d2 (
plain)
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
|
version: "3.8"
services:
server:
build:
containerfile: Containerfile
context: .
depends_on:
- database
networks:
- default
ports:
- "8080:8080"
networks:
- backend
database:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: newsstand
POSTGRES_PASSWORD: newsstand
ports:
- "9002:5432"
volumes:
- data:/var/lib/postgresql/data
networks:
- backend
volumes:
data:
networks:
backend:
|