Projekt

Obecné

Profil

Stáhnout (601 Bajtů) Statistiky
| Větev: | Tag: | Revize:
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

    
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
(3-3/4)