-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 1.26 KB
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
version: '3.8'
services:
tweteroo-csharp:
image: tweteroo-csharp:latest
container_name: tweteroo-csharp
network_mode: host
environment:
- DATABASE__HOST=${POSTGRES_HOST}
- DATABASE__PORT=${POSTGRES_PORT}
- DATABASE__USERNAME=${POSTGRES_USER}
- DATABASE__PASSWORD=${POSTGRES_PASSWORD}
- DATABASE__NAME=${POSTGRES_DB}
restart: unless-stopped
volumes:
- ~/.microsoft/usersecrets:/root/.microsoft/usersecrets:ro
migrate:
image: tweteroo-csharp-migrate:latest
container_name: migrate
network_mode: host
environment:
- DATABASE__HOST=${POSTGRES_HOST}
- DATABASE__PORT=${POSTGRES_PORT}
- DATABASE__USERNAME=${POSTGRES_USER}
- DATABASE__PASSWORD=${POSTGRES_PASSWORD}
- DATABASE__NAME=${POSTGRES_DB}
nginx:
image: nginx:1.25.3-alpine
network_mode: host
restart: unless-stopped
volumes:
- ./.deploy/nginx/:/etc/nginx/conf.d/:ro
- ~/data/docker/certbot/www:/var/www/certbot/:ro
- ~/data/docker/certbot/conf/:/etc/nginx/ssl/:ro
certbot:
image: certbot/certbot:latest
container_name: certbot
network_mode: host
volumes:
- ~/data/docker/certbot/www/:/var/www/certbot/:rw
- ~/data/docker/certbot/conf/:/etc/letsencrypt/:rw