This repository has been archived by the owner on Oct 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
71 lines (65 loc) · 1.71 KB
/
docker-compose.prod.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
62
63
64
65
66
67
68
69
70
71
version: '2'
services:
book:
image: nginx
volumes:
- ./book/_book:/usr/share/nginx/html:ro
hostname: book
expose:
- 80
environment:
- VIRTUAL_HOST=natura-poc-book.dropit.in
# This container is never builded - it's used only
# for reusing configuration,
drupal_meta:
image: busybox # Necessary to make this container valid.
environment:
- MYSQL_USER=drupal
- MYSQL_DATABASE=drupal
- MYSQL_PASSWORD=password
- MYSQL_ROOT_PASSWORD=password
drupal:
extends: drupal_meta
image: natura-poc-drupal # Only needed to override "drupal_meta" image.
container_name: natura-poc-drupal
restart: unless-stopped
build:
context: ./drupal/docker/
args:
USER_ID: "$USER_ID"
GROUP_ID: "$GROUP_ID"
hostname: drupal
cap_add:
- ALL
links:
- drupal_database:database-host
volumes:
# 1 - Use ssh config from host.
# 2 - Use git config from host.
# 3 - Place drupal files.
- $HOME/.ssh:/drupal/.ssh
- $HOME/.gitconfig:/drupal/.gitconfig
- $PWD/drupal:/drupal/app
command: tail -f /dev/null
environment:
- VIRTUAL_HOST=natura-poc-drupal.dropit.in
drupal_database:
extends: drupal_meta
image: mysql:5.6
container_name: natura-poc-db
volumes:
# Persist database outside container.
- $PWD/.mysql/:/var/lib/mysql
next_react_i18n:
image: next_react_i18n
build:
context: ./i18n
dockerfile: Dockerfile
hostname: i18n
environment:
- GRAPHQL_HOST=http://natura-poc-drupal.dropit.in/graphql
- VIRTUAL_HOST=natura-poc-i18n.dropit.in
networks:
default:
external:
name: dockerproxy_service-tier