Docker cleanups
- Start the docker dev-env osem on port 3000. Just as our documentation says and how we do it in vagrant. - hardcode CONTAINER_USERID so you don't have to have an docker-compose.override.yml if your UID is 1000. - Rename web service/container to osem for clarity in the logs - Keep assets also in a volume in production
This commit is contained in:
parent
a452257b9a
commit
70f9ff08d2
3 changed files with 11 additions and 7 deletions
|
|
@ -7,21 +7,23 @@ services:
|
|||
PGDATA: /var/lib/postgresql/data/pgdata
|
||||
volumes:
|
||||
- database:/var/lib/postgresql/data/pgdata
|
||||
web:
|
||||
osem:
|
||||
build: .
|
||||
dockerfile: Dockerfile.production
|
||||
env_file: .env.production # see dotenv.example file
|
||||
depends_on:
|
||||
- database
|
||||
ports:
|
||||
- 5000:5000
|
||||
- 3000:3000
|
||||
volumes:
|
||||
- .:/osem
|
||||
- web-data:/osem/public/system
|
||||
- web-assets:/osem/public/assets
|
||||
- web-logs:/osem/log
|
||||
|
||||
# named volumes to persist data
|
||||
volumes:
|
||||
database:
|
||||
web-data:
|
||||
web-assets:
|
||||
web-logs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue