version: "3" services: db: image: postgres container_name: creacosm-db restart: unless-stopped environment: POSTGRES_USER: creacosm POSTGRES_PASSWORD: creacosm ports: - 15432:5432 back: build: context: back dockerfile: Dockerfile args: USER_NAME: $USER_NAME USER_ID: ${USER_ID:-1000} container_name: creacosm-back volumes: - ./back:/var/www/html environment: PHP_IDE_CONFIG: serverName=creacosm front: build: context: app dockerfile: Dockerfile args: USER_NAME: $USER_NAME USER_ID: ${USER_ID:-1000} container_name: creacosm-front volumes: - ./app:/app nginx: image: nginx:1.23-alpine container_name: creacosm-nginx restart: unless-stopped ports: - "8080:8080" volumes: - ./nginx/default:/etc/nginx/conf.d/default.conf