-
Notifications
You must be signed in to change notification settings - Fork 673
/
docker-compose.yml
44 lines (41 loc) · 979 Bytes
/
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
---
version: '3.5'
services:
wetty:
image: wettyoss/wetty
build:
context: .
dockerfile: containers/wetty/Dockerfile
entrypoint: pnpm run docker-compose-entrypoint
tty: true
working_dir: /usr/src/app
ports:
- '3000:3000'
environment:
SSHHOST: 'wetty-ssh'
SSHPORT: 22
NODE_ENV: 'development'
web:
image: nginx
volumes:
- ./conf/nginx.template:/etc/nginx/conf.d/wetty.template
ports:
- '80:80'
environment:
- NGINX_DOMAIN=wetty.com
- NGINX_PORT=80
- WETTY_HOST=wetty
- WETTY_PORT=3000
command: >-
/bin/bash -c "envsubst
'$${NGINX_DOMAIN},$${NGINX_PORT},$${WETTY_HOST},$${WETTY_PORT}' <
/etc/nginx/conf.d/wetty.template > /etc/nginx/conf.d/default.conf && nginx
-g 'daemon off;'"
wetty-ssh:
build:
context: .
dockerfile: containers/ssh/Dockerfile
image: wettyoss/wetty:ssh
networks:
default:
name: wetty