]> Untitled Git - web-gallery.git/blob - docker-compose.yml
88d1329db236c7c4e33c6b2d08f62e5f58d1ae8c
[web-gallery.git] / docker-compose.yml
1 version: '3'
2 services:
3     db:
4         image: postgres:13.4-alpine
5         environment:
6             POSTGRES_USER: admin
7             POSTGRES_PASSWORD: adminpw
8         ports:
9         - 5432:5432
10     web:
11         image: nginx:1.17
12         volumes:
13         - ./nginx.conf:/etc/nginx/nginx.conf
14         - gallery_data:/data/images
15         ports:
16         - 80:80
17         depends_on:
18         - gallery
19     gallery:
20         build: .
21         image: cjpalmer/gallery:0.1.0
22         volumes:
23         - gallery_data:/app/gallery
24         - ./app:/app
25         environment:
26             FLASK_DEBUG: 1
27         depends_on:
28         - db
29 volumes:
30     gallery_data:
31         driver: local
32         driver_opts:
33             o: bind
34             type: none
35             device: /mnt/gallery_data