-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.local.yml
83 lines (77 loc) · 1.73 KB
/
docker-compose.local.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '3.8'
services:
# Go API
api:
build: ./api
# image: adamdevigili/skillbased:api
restart: always
ports:
- "8080:8080"
env_file:
- .env.local
links:
- db
# Node/NextJS
frontend:
# build: ./frontend
image: adamdevigili/skillbased:frontend
restart: always
ports:
- "3000:3000"
depends_on:
- api
env_file:
- .env.local
# Proxies requests to internal services
# nginx:
# image: adamdevigili/skillbased:nginx
# restart: always
# depends_on:
# - frontend
# - api
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - web-root:/var/www/html
# - certbot-etc:/etc/letsencrypt
# - certbot-var:/var/lib/letsencrypt
# - dhparam:/etc/ssl/certs
# env_file:
# - .env.local
# Auto TLS
# certbot:
# image: certbot/certbot
# volumes:
# - certbot-etc:/etc/letsencrypt
# - certbot-var:/var/lib/letsencrypt
# - web-root:/var/www/html
# depends_on:
# - nginx
# command: certonly --webroot --webroot-path=/var/www/html --email adamdevigili@skillbased.xyz --agree-tos --no-eff-email --force-renewal -d skillbased.xyz -d www.skillbased.xyz -d api.skillbased.xyz
db:
image: postgres:14-alpine
ports:
- "8001:5432"
volumes:
- postgres:/var/lib/postgresql/data
environment:
POSTGRES_DB: skillbased
POSTGRES_USER: postgres
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
postgres:
certbot-etc:
certbot-var:
web-root:
driver: local
driver_opts:
type: none
device: ~/skillbased
o: bind
dhparam:
driver: local
driver_opts:
type: none
device: ~/skillbased/dhparam/
o: bind