This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/docker-compose.yml

34 lines
659 B
YAML
Raw Normal View History

2020-08-17 08:23:00 +02:00
version: '2.4'
services:
django:
image: rg.fr-par.scw.cloud/crocmagnon/blog:latest
2020-08-17 08:23:00 +02:00
build: .
env_file:
- .env
volumes:
- ./db:/db
2020-09-09 18:34:21 +02:00
- staticfiles:/app/staticfiles
- media:/app/media
2020-08-17 08:23:00 +02:00
restart: on-failure
2020-09-09 18:34:21 +02:00
init: true
tty: true
nginx:
image: nginx:1.19.2
ports:
- 8000:80
volumes:
- staticfiles:/app/static
- media:/app/media
- ./docker/nginx.conf:/etc/nginx/conf.d/default.conf
2020-11-11 08:38:56 +01:00
depends_on:
- django
tests:
image: rg.fr-par.scw.cloud/crocmagnon/blog:tests
2020-08-21 14:32:01 +02:00
build:
context: .
dockerfile: tests.Dockerfile
2020-09-09 18:34:21 +02:00
volumes:
staticfiles: {}
media: {}