-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (44 loc) · 1.12 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
version: "3"
# NOTE: The docker compose file on the server does NOT match this one!
# Specifically, it is ran from inside the application folder and only certain sub-folders are made into volumes
# So if, say, you add a new dist folder for a React client, you will get 'internal redirection cycle'
services:
db:
image: postgres:16.0
container_name: db
volumes:
- ./backups:/backups
ports:
- "7654:5432"
environment:
POSTGRES_HOST_AUTH_METHOD: trust
web:
build: .
command: /bin/sh /data/bin/run.sh
stdin_open: true
tty: true
volumes:
- ./tmp:/log
- ./application:/data
expose:
- "9001"
env_file:
- ./common.env
- ./local.env
depends_on:
- db
# On windows, is this exiting with code 127?
# Change line endings to LF for env files, Dockerfile, run.sh, etc and rebuild with 'docker-compose up nginx --build'
nginx:
build: build/nginx
depends_on:
- web
volumes:
- ./tmp:/log
- ./application:/data
ports:
- "80:80"
- "443:443"
env_file:
- ./common.env
- ./local.env