aswi2022bug-thugs-gitlab/server/docker-compose.yml @ 4911f0ea
1 | 60b6bd83 | Matej Zeman | 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 | 2229e0e1 | Matej Zeman | - "5432:5432" |
17 | 60b6bd83 | Matej Zeman | |
18 | app: |
||
19 | build: . |
||
20 | ports: |
||
21 | - "8000:8000" |
||
22 | environment: |
||
23 | - "TZ=Europe/Prague" |
||
24 | networks: |
||
25 | zf-usb-detec: |
||
26 | ipv4_address: 10.5.0.6 |
||
27 | depends_on: |
||
28 | - db |
||
29 | |||
30 | networks: |
||
31 | zf-usb-detec: |
||
32 | driver: bridge |
||
33 | ipam: |
||
34 | config: |
||
35 | - subnet: 10.5.0.0/16 |