-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (42 loc) · 1018 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
version: '3.8'
services:
db:
image: postgres:15.2
container_name: db
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
volumes:
- ./alko-similar-db:/var/lib/postgresql/data
- ./alko-similar-server/resources/schema.sql:/docker-entrypoint-initdb.d/schema.sql
server:
image: essijukkala/alko-similar:server
container_name: server
environment:
- JDBC_DATABASE_URL
links:
- db
client:
image: essijukkala/alko-similar:client
container_name: client
links:
- server
nginx:
image: nginx:latest
container_name: nginx
links:
- client
ports:
- 80:80
- 443:443
volumes:
- ./nginx-conf/:/etc/nginx/conf.d/:ro
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf/:/etc/letsencrypt/:ro
certbot:
image: certbot/certbot:latest
container_name: certbot
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw