-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (41 loc) · 873 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (41 loc) · 873 Bytes
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
version: '3.8'
services:
webgen:
build:
context: .
args:
PORT: ${PORT}
dockerfile: Dockerfile
image: webgen:latest
ports:
- ${PORT}:${PORT}
restart: unless-stopped
env_file: .env
container_name: webgen_web
networks:
- webgen_net
depends_on:
- redis
- database
redis:
image: 'redis:alpine'
restart: unless-stopped
container_name: webgen_redis
ports:
- ${REDIS_PORT}:${REDIS_PORT}
networks:
- webgen_net
database:
image: 'postgres:alpine'
ports:
- ${DATABASE_PORT}:${DATABASE_PORT}
environment:
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_DB: ${DATABASE_NAME}
restart: unless-stopped
container_name: webgen_database
networks:
- webgen_net
networks:
webgen_net: