-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduction.yml
61 lines (57 loc) · 1.64 KB
/
production.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
57
58
59
60
61
version: "3"
services:
map-php:
build:
context: ./mnt/docker
dockerfile: Dockerfile
image: map-php
container_name: map-php
restart: unless-stopped
working_dir: /var/www
volumes:
- ./web:/var/www
- ./mnt/php/prod/local.ini:/usr/local/etc/php/conf.d/local.ini
map-webserver:
image: nginx:alpine
container_name: map-webserver
restart: unless-stopped
ports:
- "80:80"
- "443:443"
expose:
- "80"
- "443"
volumes:
- ./web/:/var/www
- ./mnt/nginx/prod:/etc/nginx/conf.d/
- /etc/ssl/certs/ssl-cert-snakeoil.pem:/etc/nginx/ssl/ssl-cert-snakeoil.pem
- /etc/ssl/private/ssl-cert-snakeoil.key:/etc/nginx/ssl/ssl-cert-snakeoil.key
depends_on:
- map-php
map-db:
image: postgres:15-alpine
container_name: map-db
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DATABASE}
TZ: Europe/Ljubljana
ports:
- "5432:5432"
volumes:
- map_db_data:/var/lib/postgresql/data
map-redis:
image: redis:alpine
container_name: map-redis
restart: unless-stopped
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- "6379:6379"
volumes:
- map_redis_data:/data
volumes:
map_db_data:
driver: local
map_redis_data:
driver: local