-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 1.08 KB
/
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
version: '3.7'
services:
cqrs-web-php:
build:
dockerfile: ./infrastructure/docker/php/Dockerfile
target: development
context: .
image: cqrs-symfony-php-8.1:latest
container_name: cqrs-web-php
restart: unless-stopped
working_dir: /var/www/html
volumes:
- ./:/var/www/html
networks:
- cqrs-network
cqrs-web-postgres:
image: postgres
container_name: cqrs-web-postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: toor
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- "5432:5432"
volumes:
- ./apps/web/var/postgres/:/var/lib/postgresql/data
- ./infrastructure/docker/postgres/:/docker-entrypoint-initdb.d/
networks:
- cqrs-network
cqrs-web-nginx:
image: nginx:alpine
container_name: cqrs-web-nginx
restart: unless-stopped
ports: [ "8080:8080" ]
volumes:
- ./infrastructure/docker/nginx/conf.d/web.conf:/etc/nginx/conf.d/web.conf:cached
networks:
- cqrs-network
networks:
cqrs-network:
driver: bridge