skylis/dcs_users_admin
Use the following docker-compose file for correct working of user admin service
version: '2'
services:
users_db:
image: postgres:13.0-alpine
volumes:
# - /app/postgresql/data/
- ./postgres-data:/var/lib/postgresql/data
env_file:
- ./pg.env
useradminservice:
image: skylis/dcs_users_admin:v1
container_name: dcs_users_admin
ports:
- "8000:8000"
depends_on:
- users_db
env_file:
- ./pg.env
volumes:
- ./static:/app/static/
nginx:
image: nginx:1.21.3-alpine
ports:
- "6789:80"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./static:/app/static/
depends_on:
- useradminservice
default.conf file for nginx is following
server {
listen 80;
server_name dcs_users_registration_server;
location /static/ {
root /app/;
}
location /media/ {
root /app/;
}
location / {
proxy_pass http://useradminservice:8000;
}
}
docker pull skylis/dcs_users_admin