-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (50 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
52 lines (50 loc) · 1.18 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
version: '3.7'
services:
db:
image: "postgres:13-alpine"
restart: "always"
command: -p 4002
environment:
POSTGRES_USER: "ecs"
POSTGRES_PASSWORD: "ecs"
volumes:
- postgres-data:/var/lib/postgresql/data
# Need to expose these ports to make it possible
# for yarn dev:api to be able connect to db
ports:
- 4002:4002
api:
build:
context: .
dockerfile: Dockerfile.api
depends_on:
- db
restart: "always"
environment:
POSTGRES_URL: "postgres://ecs:ecs@db:4002/ecs"
ECS_API_PORT: 4001
ECS_API_CORS_ORIGIN: "https://ecseditor.xyz"
web:
build:
context: .
dockerfile: Dockerfile.web
environment:
NGINX_PORT: 4000
ECS_API_URL: https://api.ecseditor.xyz
proxy:
image: 'jc21/nginx-proxy-manager:latest'
restart: always
ports:
- '80:80' # Public HTTP Port
- '443:443' # Public HTTPS Port
- '81:81' # Admin Web Port
environment:
DB_SQLITE_FILE: "/data/database.sqlite"
DISABLE_IPV6: 'true'
volumes:
- proxy-data:/data
- letsencrypt-data:/etc/letsencrypt
volumes:
? postgres-data
? proxy-data
? letsencrypt-data