updated to make work some settings

This commit is contained in:
root
2023-09-07 22:18:22 +00:00
parent 857aa1af52
commit a4f03e930b
5 changed files with 33 additions and 13 deletions

View File

@@ -1,18 +1,25 @@
version: "3.3"
services:
web:
app:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
hostname: app
volumes:
- .:/app
ports:
- "3000:3000"
networks:
- internal
environment:
TEAMSNAP_CLIENT_ID: "${TEAMSNAP_CLIENT_ID}"
TEAMSNAP_CLIENT_SECRET: "${TEAMSNAP_CLIENT_SECRET}"
webserver:
image: nginx:latest
ports:
- 80:80
- 443:443
restart: always
networks:
- internal
volumes:
- ./nginx/conf/:/etc/nginx/conf.d/:ro
- ./certbot/www:/var/www/certbot/:ro
@@ -22,3 +29,7 @@ services:
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
networks:
internal:
driver: bridge