diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..194c9bc --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,38 @@ +version: '3' + +services: + dynamicweb2: + build: + context: . + ports: + - "8000:8000" + volumes: + - dynamicweb2_vol:/app + depends_on: + - db + env_file: + - .env + + nginx: + build: + context: ./nginx + ports: + - "80:80" + depends_on: + - dynamicweb2 + + db: + image: postgres:latest + environment: + POSTGRES_DB: app + POSTGRES_USER: app + POSTGRES_PASSWORD: uuiowmm3AS + volumes: + - postgres_data:/var/lib/postgresql/data + - postgres_socket:/var/run/postgresql + +volumes: + dynamicweb2_vol: + postgres_data: + postgres_socket: +