-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (45 loc) · 955 Bytes
/
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
47
48
49
50
version: '3.2'
services:
app:
build: docker/php
image: wheee
container_name: wheee-app
depends_on:
- db
- nginx
working_dir: /var/www/wheee
volumes:
- ./:/var/www/wheee
networks:
- wheee
nginx:
build: docker/nginx
container_name: wheee-nginx
volumes:
- ./:/var/www/wheee
- ./docker/nginx/conf.d/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/sites-enabled:/etc/nginx/sites-enabled/
- ./docker/nginx/certs:/etc/nginx/certs:delegated
networks:
- wheee
ports:
- 80:80
- 443:443
db:
image: postgres:latest
container_name: wheee-db
volumes:
- "wheee_pg_data:/var/lib/postgresql/data"
environment:
- POSTGRES_USER=wheee
- POSTGRES_PASSWORD=wheeepwd
- POSTGRES_DB=wheee
ports:
- 5432:5432
networks:
- wheee
networks:
wheee:
driver: bridge
volumes:
wheee_pg_data: { }