irongit
RootAiSec/docker-compose.yml
24 lines556 BYAML
1services:
2 postgres:
3 restart: always
4 image: postgres:alpine
5 env_file:
6 - .env
7 ports:
8 - "${POSTGRES_EXTERNAL_PORT}:5432"
9 volumes:
10 - .data/postgres:/var/lib/postgresql/data
11 app:
12 restart: always
13 build: app
14 env_file:
15 - .env
16 volumes:
17 - ./app:/app
18 nginx:
19 restart: always
20 image: nginx:alpine
21 ports:
22 - "${NGINX_EXPOSE_PORT}:80"
23 volumes:
24 - ./.nginx:/etc/nginx/conf.d