-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (54 loc) · 1.18 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
46
47
48
49
50
51
52
53
54
55
56
version: "3.7"
services:
postgres:
env_file: ./server/.env
image: postgres
ports:
- '5432:5432'
volumes:
- mitwelten_user_db:/var/lib/postgresql/data
api:
env_file: ./server/.env
container_name: api
depends_on:
- postgres
restart: always
build:
context: ./server
dockerfile: ./Dockerfile
image: 22fsimvs31/mitwelten-fs22-imvs31:prod_api
volumes:
- ./server:/app/
client:
stdin_open: true
build:
context: ./client
dockerfile: ./Dockerfile
image: "22fsimvs31/mitwelten-fs22-imvs31:prod_client"
restart: always
container_name: client
volumes:
- ./client:/app
nginx:
image: nginx:latest
depends_on:
- api
- client
restart: always
build:
dockerfile: Dockerfile
context: ./nginx
ports:
- 80:80
- 443:443
volumes:
- ./nginx/:/etc/nginx/conf.d/:ro
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
volumes:
mitwelten_user_db: