Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 9832694f

Přidáno uživatelem Stanislav Král před asi 4 roky(ů)

#8219 - Dockerization improvements and gunicorn WSGI implementation

- when using docker to run the application nginx proxy is now used (app is then available at localhost:80)

Zobrazit rozdíly:

docker-compose.yml
1
version: '3.3'
1
version: '3.7'
2

  
3
networks:
4
    web:
5

  
2 6
services:
3
    server:
7
    nginx:
8
        restart: unless-stopped
4 9
        build:
5
            dockerfile: docker/Dockerfile
6 10
            context: .
11
            dockerfile: docker/nginx/Dockerfile
12
        networks:
13
            - web
7 14
        ports:
8
            - '5000:5000'
15
            - 80:80
16
    gunicorn:
17
        restart: unless-stopped
18
        build:
19
            context: .
20
            dockerfile: docker/gunicorn/Dockerfile
21
        networks:
22
            - web

Také k dispozici: Unified diff