-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
55 lines (50 loc) · 1.13 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '3.3'
networks:
project-olly-net:
driver: bridge
services:
project-olly-app:
restart: always
build: .
depends_on:
- project-olly-db
volumes:
- socket:/sock
- ${static_path:-static}:/static
- ${template_path:-templates}:/src/project-templates
env_file: .env
networks:
- project-olly-net
container_name: project-olly-app
project-olly-db:
restart: always
image: postgres:12
environment:
- POSTGRES_PASSWORD=${db_password}
- POSTGRES_USER=${db_username}
networks:
- project-olly-net
volumes:
- ./database:/var/lib/postgresql/data
container_name: project-olly-db
project-olly-proxy:
restart: always
image: abiosoft/caddy:no-stats
depends_on:
- project-olly-app
environment:
- ACME_AGREE=true
- CADDYPATH=/etc/caddycerts
ports:
- 80:80
- 443:443
volumes:
- ./Caddyfile:/etc/Caddyfile
- socket:/sock
- ${static_path:-static}:/html/static
- ${cert_path:-./certs}:/etc/caddycerts
container_name: project-olly-proxy
volumes:
socket:
static:
templates: