fix env var for user server

main
leonnicolas 4 years ago
parent 118fb01f12
commit 6fa67be987
No known key found for this signature in database
GPG Key ID: 088D0743E2B65C07

@ -2,64 +2,51 @@ version: '2.0'
services: services:
db: db:
image: postgres:12.4-alpine image: postgres:12.4-alpine
ports:
- "8001:5432"
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- database-volume:/var/lib/postgresql/data - database-volume:/var/lib/postgresql/data
- ./init-users.sh:/docker-entrypoint-initdb.d/init-users.sh - ./init-users.sh:/docker-entrypoint-initdb.d/init-users.sh
environment: environment:
- POSTGRES_PASSWORD=password - POSTGRES_PASSWORD=postgres
user-management: user-management:
image: flotte-docker-registry.spdns.org/flotte-user-managment image: flotte-docker-registry.spdns.org/flotte-user-managment
ports:
- "5000:5000"
- "8080:8080"
links: links:
- "db:database" - "db:database"
mem_limit: 2000000000 mem_limit: "1000000000"
restart: unless-stopped restart: unless-stopped
environment: environment:
- DATABASE_URL=postgres://fuser_management:passwordofuserserver@database/user_management - POSTGRES_CONNECTION_URL=postgres://fuser_management:passwordofuserserver@database/user_management
- RUST_LOG=trace - RUST_LOG=trace
- HTTP_SERVER_ADDRESS=0.0.0.0:8080 - HTTP_SERVER_ADDRESS=0.0.0.0:8080
- RPC_SERVER_ADDRESS=0.0.0.0:5000 - RPC_SERVER_ADDRESS=0.0.0.0:5000
- ENABLE_CORS=true - ENABLE_CORS=true
api-server: api-server:
image: flotte-docker-registry.spdns.org/apollo-server image: flotte-docker-registry.spdns.org/apollo-server
ports:
- "4000:4000"
links: links:
- "db:database" - "db:database"
- "user-management:um" - "user-management:um"
mem_limit: 1000000000
restart: unless-stopped restart: unless-stopped
environment: environment:
- RPC_HOST=um:5000 - RPC_HOST=um:5000
- POSTGRES_CONNECTION_URL=postgres://fapi:passwordofapiserver@database/flotte_api - DATABASE_URL=postgres://fapi:passwordofapiserver@database/flotte_api
- NODE_ENV=nodevelop - NODE_ENV=nodevelop
frontend: frontend:
image: flotte-docker-registry.spdns.org/frontend-server image: flotte-docker-registry.spdns.org/frontend-server
ports:
- "8081:8080"
mem_limit: 100000000
restart: unless-stopped
proxy: proxy:
image: staticfloat/nginx-certbot:v1.1 image: staticfloat/nginx-certbot
links: links:
- "frontend:frontend" - "frontend:frontend"
- "api-server:api-server" - "api-server:api-server"
- "user-management:user-management" - "user-management:user-management"
mem_limit: 1000000000
restart: unless-stopped restart: unless-stopped
environment: environment:
CERTBOT_EMAIL: "youremail@example.de" CERTBOT_EMAIL: "your_email@mail.com"
ports: ports:
- "80:80" - "80:80"
- "443:443" - "443:443"
volumes: volumes:
- ./conf.d:/etc/nginx/user.conf.d:ro - ./conf.d:/etc/nginx/user.conf.d:ro
- letsencrypt:/etc/letsencrypt - ./certbot_extra_domains:/etc/nginx/certbot/extra_domains:ro
volumes: volumes:
database-volume: {} database-volume: {}
letsencrypt: letsencrypt:

Loading…
Cancel
Save