ref: dockerize
./docker-compose.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
version: "3" services: postgres: container_name: postgres image: postgres:9.4 environment: POSTGRES_USER: noosfero POSTGRES_PASSWORD: noosfero POSTGRES_DB: noosfero_development volumes: - pg-data:/var/lib/postgresql/data noosfero: container_name: noosfero env_file: - .env build: context: . dockerfile: ./config/docker/dev/Dockerfile stdin_open: true tty: true ports: - 3000:3000 depends_on: - postgres - redis volumes: - .:/noosfero environment: POSTGRES_HOST: postgres POSTGRES_USER: noosfero POSTGRES_PASSWORD: noosfero POSTGRES_DB: noosfero_development redis: container_name: redis image: redis volumes: - redis:/data ports: - 6379:6379 volumes: pg-data: {} redis: |