2020-04-02 15:38:38 +02:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
build:
|
|
|
|
args:
|
|
|
|
user: hovedprosjekt
|
|
|
|
uid: 1000
|
2020-04-02 16:09:19 +02:00
|
|
|
context: ./.docker
|
2020-04-02 15:38:38 +02:00
|
|
|
dockerfile: Dockerfile
|
|
|
|
image: hovedprosjekt
|
|
|
|
container_name: hovedprosjekt-app
|
|
|
|
restart: unless-stopped
|
|
|
|
working_dir: /var/www/
|
|
|
|
volumes:
|
2020-04-02 16:09:19 +02:00
|
|
|
- ./:/var/www
|
2020-04-02 15:38:38 +02:00
|
|
|
networks:
|
|
|
|
- hovedprosjekt
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:12.2-alpine
|
|
|
|
container_name: hovedprosjekt-db
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
2020-04-02 16:09:19 +02:00
|
|
|
POSTGRES_PASSWORD: FLOT_Hovedprosjekt
|
2020-04-02 15:38:38 +02:00
|
|
|
POSTGRES_USER: hovedprosjekt
|
|
|
|
POSTGRES_DB: hovedprosjekt
|
|
|
|
volumes:
|
|
|
|
- /srv/flot_pgdata:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
- hovedprosjekt
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx:1.17
|
|
|
|
container_name: hovedprosjekt-nginx
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
volumes:
|
2020-04-02 16:09:19 +02:00
|
|
|
- ./:/var/www
|
|
|
|
- ./.docker/nginx/:/etc/nginx/conf.d/
|
2020-04-02 15:38:38 +02:00
|
|
|
- /srv/ssl:/srv/ssl
|
|
|
|
networks:
|
|
|
|
- hovedprosjekt
|
|
|
|
|
|
|
|
networks:
|
|
|
|
hovedprosjekt:
|
|
|
|
driver: bridge
|