-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
94 lines (79 loc) · 2.13 KB
/
docker-compose.yaml
File metadata and controls
94 lines (79 loc) · 2.13 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
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
84
85
86
87
88
89
90
91
92
93
version: "3.3"
services:
nginx:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped #Ensure proxy manager survives crashes
ports:
#Allow the respective container ports to be accessible from the host machine
- '80:80'
- '81:81' #Port for the Admin Panel
- '443:443'
volumes:
#Map the following container directories to corresponding directories on the host
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
# caddy:
# image: lucaslorentz/caddy-docker-proxy:ci-alpine
# ports:
# - 80:80
# - 443:443
# environment:
# - CADDY_INGRESS_NETWORKS=caddy
# networks:
# - caddy
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# - caddy_data:/data
# restart: unless-stopped
homedesign:
image: webgallery
build: ../home-design-gallery
# networks:
# - caddy
# labels:
# caddy: design.merongg.me
# caddy.reverse_proxy: "{{upstreams 3000}}"
# dockerfile: ../home-design-gallery/Dockerfile
portfolio:
image: meron
build:
context: ../meron-portfolio
# networks:
# - caddy
# labels:
# caddy: portfolio.merongg.me
# caddy.reverse_proxy: "{{upstreams 3000}}"
# dockerfile: ../meron-portfolio/Dockerfile
codezilla_api:
image: studentracker
build:
context: ../codezilla-student-tracker
args:
NODE_RELEASE: 16
# dockerfile: ../codezilla-student-tracker/Dockerfile
depends_on:
- codezilla_localhostdb
environment:
NODE_ENV: production
DB_HOST: codezilla_localhostdb
DB_PORT: 5432
DB_USER: postgres
DB_PASSWORD: '${CODEZILLA_DB_PASSWORD}'
DB_NAME: postgres
links:
- codezilla_localhostdb
codezilla_localhostdb:
image: postgres:14.1-alpine
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: '${CODEZILLA_DB_PASSWORD}'
ports:
- '5432:5432'
volumes:
- ./codezilladata:/var/lib/postgresql/data
# networks:
# caddy: {}
# # external: true
# volumes:
# caddy_data: {}