aswi2022bug-thugs-gitlab/server/docker-compose.yml @ 93d0ec10
1 |
version: '3' |
---|---|
2 |
|
3 |
services: |
4 |
db: |
5 |
image: postgres:alpine |
6 |
restart: always |
7 |
networks: |
8 |
zf-usb-detec: |
9 |
ipv4_address: 10.5.0.5 |
10 |
environment: |
11 |
- POSTGRES_DB=usb_api_db |
12 |
- POSTGRES_USER=postgres |
13 |
- POSTGRES_PASSWORD=postgres |
14 |
- "TZ=Europe/Prague" |
15 |
ports: |
16 |
- "5432:5432" |
17 |
volumes: |
18 |
- ./postgres-data:/var/lib/postgresql/data |
19 |
|
20 |
app: |
21 |
build: . |
22 |
ports: |
23 |
- "8000:8000" |
24 |
environment: |
25 |
- "TZ=Europe/Prague" |
26 |
networks: |
27 |
zf-usb-detec: |
28 |
ipv4_address: 10.5.0.6 |
29 |
depends_on: |
30 |
- db |
31 |
|
32 |
networks: |
33 |
zf-usb-detec: |
34 |
driver: bridge |
35 |
ipam: |
36 |
config: |
37 |
- subnet: 10.5.0.0/16 |