-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 904 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
version: "3"
services:
postgresql:
image: postgres:12.3-alpine
container_name: postgresql
ports:
- 5432:5432
environment:
POSTGRES_USER: testuser
POSTGRES_PASSWORD: password
POSTGRES_DB: calendar
POSTGRES_INITDB_ARGS: --encoding=UTF-8
networks:
- network
hostname: localhost
redis:
image: redis:latest
container_name: redis
ports:
- 6379:6379
networks:
- network
hostname: localhost
web-app:
build:
context: .
dockerfile: Dockerfile
ports:
- 8080:8080
environment:
SSL_DISABLE: 'True'
PORT: 8080
REDIS_URL: redis://h:@redis:6379
DATABASE_URL: postgresql://testuser:password@postgresql:5432/calendar?sslmode=disable
depends_on:
- postgresql
- redis
networks:
- network
tty: true
networks:
network:
driver: bridge